[Top][All Lists]

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

wrong postdep_objects for CXX when using "-flto -fuse-linker-plugin"

From: Brice De Bruyne
Subject: wrong postdep_objects for CXX when using "-flto -fuse-linker-plugin"
Date: Sat, 04 Dec 2010 15:40:41 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; nl; rv: Gecko/20101013 Lightning/1.0b2 Thunderbird/3.1.5


The configure-script seems to misconfigure the postdep_objects_CXX when CFLAGS contains "-flto -fuse-linker-plugin" (using binutils- and gcc-4.6-20101127):

eg (libtool-2.4.1a):
CFLAGS="-flto -fuse-linker-plugin" CXXFLAGS="-flto -fuse-linker-plugin" ./configure && grep postdep_objects libtool

postdep_objects="/usr/lib/gcc/i686-pc-linux-gnu/4.6.0/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../crtn.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.0/crtbeginS.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.0/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../crtn.o"

instead of:

postdep_objects="/usr/lib/gcc/i686-pc-linux-gnu/4.6.0/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../crtn.o"

This does not happen when only -flto or only -fuse-linker-plugin is in CFLAGS, it only happens when they are both in CFLAGS...

I suppose the error comes from the check in libtool.m4....

Thanks for looking in to this!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]