[FFmpeg-cvslog] r17755 - in trunk: common.mak configure

diego subversion
Tue Mar 3 13:52:12 CET 2009


Author: diego
Date: Tue Mar  3 13:52:12 2009
New Revision: 17755

Log:
Do not add -D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE unconditionally to
CFLAGS.  Apparently there are some systems that do not like these definitions.

Modified:
   trunk/common.mak
   trunk/configure

Modified: trunk/common.mak
==============================================================================
--- trunk/common.mak	Tue Mar  3 13:47:47 2009	(r17754)
+++ trunk/common.mak	Tue Mar  3 13:52:12 2009	(r17755)
@@ -18,8 +18,7 @@ endif
 
 ALLFFLIBS = avcodec avdevice avfilter avformat avutil postproc swscale
 
-CFLAGS := -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
-          -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(OPTFLAGS)
+CFLAGS := -DHAVE_AV_CONFIG_H -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(OPTFLAGS)
 
 %.o: %.c
 	$(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Mar  3 13:47:47 2009	(r17754)
+++ trunk/configure	Tue Mar  3 13:52:12 2009	(r17755)
@@ -1418,6 +1418,12 @@ if test "$?" != 0; then
 fi
 
 check_cflags -std=c99
+check_cc -D_FILE_OFFSET_BITS=64 <<EOF && add_cflags -D_FILE_OFFSET_BITS=64
+#include <stdlib.h>
+EOF
+check_cc -D_LARGEFILE_SOURCE <<EOF && add_cflags -D_LARGEFILE_SOURCE
+#include <stdlib.h>
+EOF
 
 case "$arch" in
     alpha)




More information about the ffmpeg-cvslog mailing list