[FFmpeg-devel] Remove force of largefile defines in common.mak

Hans-Christian Egtvedt hans-christian.egtvedt
Thu Feb 19 15:31:53 CET 2009


Hi,

I've had a quick discussion of this on mplayer-dev-eng, but they sync
their common.mak with common.mak from FFmpeg.

The problem I encounter is that CFLAGS is forced to contain
_FILE_OFFSET_BITS=64 and _LARGEFILE_SOURCE.

common.mak:21
CFLAGS := -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 D_LARGEFILE_SOURCE \
          -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(OPTFLAGS)

On uClibc it results in an #error if the user specifies
_FILE_OFFSET_BITS=64 and largefile support is not enabled.

Could these defines be removed from common.nak?

Or could largefile support be detected by configure, or a switch to the
configure script?

Or must FFmpeg have largefile support enable to compile and run?

-- 
Best regards,
Hans-Christian Egtvedt




More information about the ffmpeg-devel mailing list