Re: [PATCH] disable de-duplication of postdeps on Solaris

2012-07-30 Thread Fabian Groffen
On 29-07-2012 16:14:12 -0500, Bob Friesenhahn wrote: > On Thu, 26 Jul 2012, Fabian Groffen wrote: > > > > Libtool apparently figures out what libs to link to by watching what the > > compiler does. It applies duplicate elimination on the result of that > > (don't know why) causing -lgcc_s -lc -lgc

Re: [PATCH] disable de-duplication of postdeps on Solaris

2012-07-30 Thread Bob Friesenhahn
On Mon, 30 Jul 2012, Fabian Groffen wrote: Unfortunately, this fix is not working for me (not fixing issue I already encountered). I do see libtool's exceptions test pass (for a 32-bit build) , but it does not work for my own C++ application as a 64-bit build. It seems that GCC itself is causi

Re: [PATCH] disable de-duplication of postdeps on Solaris

2012-07-30 Thread Fabian Groffen
On 30-07-2012 08:49:17 -0500, Bob Friesenhahn wrote: > Libtool link line: > /bin/bash ./libtool --tag=CXX --mode=link /usr/local64/bin/c++-64 > -march=native -O -g -g3 -ggdb -Wall -Winline -W -Wextra -Wno-unknown-pragmas > -D_REENTRANT -pthreads -no-undefined -Wl,-zlazyload -L/usr/local64/lib

Re: [PATCH] disable de-duplication of postdeps on Solaris

2012-07-30 Thread Bob Friesenhahn
Perhaps the issue is caused by this in the GCC spec file? *lib: %{!symbolic: %{pthreads|pthread:-lpthread} %{pthreads|pthread|fprofile-generate*:} %{p|pg:-ldl} -lc} If that is true, then the problem should go away if pthreads are not requested. Bob -- Bob Friesenhahn bfrie...@s

Re: [PATCH] disable de-duplication of postdeps on Solaris

2012-07-30 Thread Bob Friesenhahn
On Mon, 30 Jul 2012, Fabian Groffen wrote: On 30-07-2012 08:49:17 -0500, Bob Friesenhahn wrote: Libtool link line: /bin/bash ./libtool --tag=CXX --mode=link /usr/local64/bin/c++-64 -march=native -O -g -g3 -ggdb -Wall -Winline -W -Wextra -Wno-unknown-pragmas -D_REENTRANT -pthreads -no-unde

Re: [PATCH] disable de-duplication of postdeps on Solaris

2012-07-30 Thread Fabian Groffen
On 30-07-2012 09:27:00 -0500, Bob Friesenhahn wrote: > Yesterday I took the link command that libtool was generating and > removed -lc from it. GCC still produced -lc in its collect2 > invocation. it should, see link_gcc_c_sequence > It seems that there are at least two issues. In some cases

Re: [PATCH] disable de-duplication of postdeps on Solaris

2012-07-30 Thread Bob Friesenhahn
On Mon, 30 Jul 2012, Fabian Groffen wrote: I think libtool only injects -lc if it was actually explicitly given, or do you suspect it to do otherwise? I think you are correct. However, once this junk makes it into a libtool .la file then it is preserved by libtool. Your GCC seems to use GN

Re: [PATCH] disable de-duplication of postdeps on Solaris

2012-07-30 Thread Fabian Groffen
On 30-07-2012 11:02:59 -0500, Bob Friesenhahn wrote: > On Mon, 30 Jul 2012, Fabian Groffen wrote: > > > > I think libtool only injects -lc if it was actually explicitly given, or > > do you suspect it to do otherwise? > > I think you are correct. However, once this junk makes it into a > libtool