summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.mak3
-rwxr-xr-xconfigure6
2 files changed, 7 insertions, 2 deletions
diff --git a/common.mak b/common.mak
index 35c05795fb..b756123d4f 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 1e51ebecb5..2b761fe1e0 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 && 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)