Re: [PATCH] honor CFLAGS & friends from environment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 15, 2019 at 09:34:55AM +0100, Uwe Kleine-König wrote:
> On Fri, Feb 15, 2019 at 01:42:53AM +0000, Ramsay Jones wrote:
> > [Uwe - in an earlier email you said the you had 'other
> > patches applied' (including setting CC=gcc-8 and LDFLAGS).
> > An obvious question would be: What patches and why? :-D
> > (I assume it has something to do with 'packaging', but
> > the question remains).]
> 
> I use CC = gcc-8 for the debian package because other it can happen (and
> it actually did) that /usr/bin/gcc was updated from gcc-X to gcc-(X+1)
> and then sparse started to fail because it still used
> /usr/lib/gcc/x86_64-linux-gnu/X/ (i.e. the output of
> 
> 	gcc --print-file-name=
> 
> ) which disappeard as it changes on major version bumps.
> 
> So sparse depends explicitly on the current gcc version and uses this.
> 
> The LDFLAGS change isn't strictly Debian specific, upstream could maybe
> benefit here, too. See
> 
> 	https://sources.debian.org/src/sparse/0.6.0-3/debian/patches/ld-as-needed.patch/
> 
> for the actual change.

Problem is that '--as-needed' is not supported on all platforms
(it doesn't for me on a not so old FreeBSD, for example).

--Luc



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux