-DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 (was: unzip.spec)

Jakub Bogusz qboosh at pld-linux.org
Tue Aug 8 11:46:38 CEST 2006


On Tue, Aug 08, 2006 at 11:20:42AM +0200, Radoslaw Zielinski wrote:
> Szymon Siwek <sls at poczta.wp.pl> [08-08-2006 06:30]:
> [...]
> > -	CF="%{rpmcflags} -I. -Wall -DASM_CRC" \
> > +	CF="%{rpmcflags} -I. -Wall -DASM_CRC -DLARGEFILE_SOURCE  -D_FILE_OFFSET_BITS=64" \
> 
> What would be the correct way to do this globally in Th?
> Changing %optflags, or rather some gcc header file?
> Should we do it?

No.
This is per-app thing.
LFS-ready apps already define proper flags (usually through autoconf
macro).
Others should be reviewed individually. Defining anything won't convert
ints to 64-bit in bad-written code.


-- 
Jakub Bogusz    http://qboosh.cs.net.pl/


More information about the pld-devel-en mailing list