Setting name for dynamic linker fails for gcc-4.2.4
Jitendra Nair
jitendran@gslab.com
Wed Dec 24 09:39:00 GMT 2008
Setting the BOOT_CFLAGS did not work , running ./configure with
'--disable-bootstrap' option and then
proceeding with "make" by setting CFLAGS did work , the linker path is
now correctly set.
$ ldd /home/jnair/opt/gcc-4.2.4/bin/gcc
linux-vdso.so.1 => (0x00007fff0b1ff000)
libc.so.6 => /toolchain/x86_64-unknown-linux-gnu/lib/libc.so.6
(0x00007fba02ae2000)
/toolchain/x86_64-unknown-linux-gnu/lib/ld-linux-x86-64.so.2
(0x00007fba02e2b000)
Thanks
Regards
Jitendra Nair.
Ian Lance Taylor wrote:
> Jitendra Nair <jitendran@gslab.com> writes:
>
>
>> Here is my CFLGAS
>>
>> export
>> CFLAGS=-Wl,--dynamic-linker,/toolchain/x86_64-unknown-linux-gnu/lib/ld-linux-x86-64.so.2,--rpath,/toolchain/x86_64-unknown-linux-gnu/lib,
>> --rpath,/toolchain/x86_64-unknown-linux-gnu/glibc-2.7/lib
>>
>
>
>> 2) But the dynamic linker path is NOT correctly set for
>> gcc-4.2.4. see below the 'ldd' output
>>
>
> I think you need to use BOOT_CFLAGS now, rather than CFLAGS, when
> building gcc.
>
> Ian
>
>
More information about the Gcc-help
mailing list