On Wed, May 04, 2016 at 11:43:13AM -0400, Camm Maguire wrote:
> 
> I intend to sanitize this in the gcl configure script, as is already
> done on an ad-hoc basis for osx.  The problem is getting the semantics
> right for both gcc and clang interfaces to the linker.  With gcc,
> *appending* -no-pie to user supplied LDFLAGS works.  clang has no such
> switch, but does have -pie.  Furthermore, on linux, both 'clang -pie
> -Wl,-no_pie' and 'clang -Wl,-no_pie' fail, though the latter works on
> darwin.  

I suspect clang will follow suit with gcc and grow "-fno-pie -no-pie" at
some point, but that certainly won't work today.  That's why I fixed it
in the Debian packaging for now, since only shiny/new versions of GCC
have those flags, and you already specify gcc in your rules file.

I have to figure out similar configure magic for upstream glibc soon, so
if I come up with a good upstreamish solution, I'll recall this convo
and let you know, but for now, the debian/rules hack is better than no
change (and a constant reminder to fix it right later :P)

... Adam

Reply via email to