[MPlayer-dev-eng] [PATCH] Get rid of -D_GNU_SOURCE

Diego Biurrun diego at biurrun.de
Fri Dec 8 19:47:03 CET 2006


On Fri, Dec 08, 2006 at 10:07:34AM -0500, Rich Felker wrote:
> On Fri, Dec 08, 2006 at 02:35:19PM +0100, Diego Biurrun wrote:
> > > -CFLAGS= -D__USE_UNIX98 -D_GNU_SOURCE \
> > > +CFLAGS= -D__USE_UNIX98 \
> > >  	-DHAVE_LIMITS_H -DHAVE_ERRNO_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H \
> > >  	-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION=\"1.2.9\"
> > 
> > ... for external libraries I'm not so sure.  If they are compiled with
> > _GNU_SOURCE upstream then I think we should use the same configuration.
> 
> Why? -D_GNU_SOURCE is always wrong.. If there really are GNU
> dependencies they should be found and removed.

Modifications to external libraries should be as minimal as possible
IMO and when we do modifications we should try to send them upstream.

For libdvdcss and libdvdread I'm afraid the change might introduce
subtle breakage and/or a library that behaves slightly different than
the upstream version.  This is not good.

Diego




More information about the MPlayer-dev-eng mailing list