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

Diego Biurrun diego
Tue Mar 3 13:52:24 CET 2009


On Mon, Feb 23, 2009 at 02:30:39AM +0100, Diego Biurrun wrote:
> On Thu, Feb 19, 2009 at 03:31:53PM +0100, Hans-Christian Egtvedt wrote:
> > 
> > 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?
> 
> Please test the attached patch which should fix your problem by
> implementing the flag detection in configure.

I've waited long enough, applied.

Diego




More information about the ffmpeg-devel mailing list