Subject: Re: bug#18784: Coultdn't compile emacs-24.4

From: Eli Zaretskii <[email-masked]>
Date: Mon, 16 Mar 2015 18:18:28 +0200

> From: Stefan Monnier <[email-masked]>
> Date: Mon, 16 Mar 2015 09:09:52 -0400
> Cc: [email-masked]
> 
> > +if test "$GCC" = yes; then
> > +  # Disable PIE to avoid segfaults in temacs (bug#18780)
> > +  LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -nopie"
> > +fi
> 
> Hmm... is `-nopie' a linker-option or a compiler-option?

It's a GCC option, but at least my GCC doesn't recognize -nopie.  It
does recognize -fno-pie.

Anyway, please don't make that effective for every supported system;
e.g., I think it's wrong to do that for Windows, which always produces
PIE code.