Originally committed as revision 17755 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diego Biurrun authored on 2009/03/03 21:52:12... | ... |
@@ -18,8 +18,7 @@ endif |
18 | 18 |
|
19 | 19 |
ALLFFLIBS = avcodec avdevice avfilter avformat avutil postproc swscale |
20 | 20 |
|
21 |
-CFLAGS := -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \ |
|
22 |
- -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(OPTFLAGS) |
|
21 |
+CFLAGS := -DHAVE_AV_CONFIG_H -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(OPTFLAGS) |
|
23 | 22 |
|
24 | 23 |
%.o: %.c |
25 | 24 |
$(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $< |
... | ... |
@@ -1418,6 +1418,12 @@ if test "$?" != 0; then |
1418 | 1418 |
fi |
1419 | 1419 |
|
1420 | 1420 |
check_cflags -std=c99 |
1421 |
+check_cc -D_FILE_OFFSET_BITS=64 <<EOF && add_cflags -D_FILE_OFFSET_BITS=64 |
|
1422 |
+#include <stdlib.h> |
|
1423 |
+EOF |
|
1424 |
+check_cc -D_LARGEFILE_SOURCE <<EOF && add_cflags -D_LARGEFILE_SOURCE |
|
1425 |
+#include <stdlib.h> |
|
1426 |
+EOF |
|
1421 | 1427 |
|
1422 | 1428 |
case "$arch" in |
1423 | 1429 |
alpha) |