Re: [autoconf] Problems Configuring (C Compiler cannot produce executables)

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

 



Hi Mike,

On Wed, Aug 22, 2012 at 3:06 PM, Mike Frysinger <vapier@xxxxxxxxxx> wrote:
> On Wednesday 22 August 2012 13:47:30 Jeffrey Walton wrote:
>> -Wall -Wextra -Wconversion -fPIE -pie -Wno-unused-parameter -Wformat=2
>
> read the log you actually posted.  you aren't using -pie (which would be
> correct), you're using -Wl,-pie (which is wrong).
Believe it or not, you need both -fPIE and -pie. The linker consumes
the -pie switch. The -Wl just passes the switch through the compiler
drive to the linker.

If you omit -pie, `readelf -l xxx.exe | grep -i "Type"` will return
the file type is an EXE (without ASLR); and not DYN (with ASLR).

Jeff

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux