From 9d821fc2d22b1306fce7cc595466fd333b448684 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Tue, 3 Mar 2009 12:52:12 +0000 Subject: [PATCH] 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. Originally committed as revision 17755 to svn://svn.ffmpeg.org/ffmpeg/trunk --- common.mak | 3 +-- configure | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/common.mak b/common.mak index 35c05795f..b756123d4 100644 --- a/common.mak +++ b/common.mak @@ -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 $@ $< diff --git a/configure b/configure index 1e51ebecb..2b761fe1e 100755 --- a/configure +++ b/configure @@ -1418,6 +1418,12 @@ if test "$?" != 0; then fi check_cflags -std=c99 +check_cc -D_FILE_OFFSET_BITS=64 < +EOF +check_cc -D_LARGEFILE_SOURCE < +EOF case "$arch" in alpha) -- 2.11.0