[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [autoconf] Problems Configuring (C Compiler cannot produce executabl
From: |
Jeffrey Walton |
Subject: |
Re: [autoconf] Problems Configuring (C Compiler cannot produce executables) |
Date: |
Wed, 22 Aug 2012 15:15:07 -0400 |
Hi Mike,
On Wed, Aug 22, 2012 at 3:06 PM, Mike Frysinger <address@hidden> 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
- Re: [autoconf] Problems Configuring (C Compiler cannot produce executables), (continued)
- Re: Problems Configuring (C Compiler cannot produce executables), Miles Bader, 2012/08/23
- Re: Problems Configuring (C Compiler cannot produce executables), Russ Allbery, 2012/08/23
- Re: [autoconf] Re: Problems Configuring (C Compiler cannot produce executables), suzuki toshiya, 2012/08/23
- Re: Problems Configuring (C Compiler cannot produce executables), Ralf Corsepius, 2012/08/23
- Re: Problems Configuring (C Compiler cannot produce executables), Russ Allbery, 2012/08/23
- Re: [autoconf] Problems Configuring (C Compiler cannot produce executables), Mike Frysinger, 2012/08/22
- Re: [autoconf] Problems Configuring (C Compiler cannot produce executables),
Jeffrey Walton <=
- Re: [autoconf] Problems Configuring (C Compiler cannot produce executables), Mike Frysinger, 2012/08/22