Re: lib-ignore: link error with Sun C++ compiler

2010-03-28 Thread Jim Meyering
Bruno Haible wrote: >> * Bruno Haible wrote on Sat, Mar 20, 2010 at 11:52:25PM CET: >> >lib-ignore: Determine different options for different compilers. >> >* m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which >> >depends on the current language (C/C++/Fortran). Don't s

Re: lib-ignore: link error with Sun C++ compiler

2010-03-28 Thread Bruno Haible
> * Bruno Haible wrote on Sat, Mar 20, 2010 at 11:52:25PM CET: > > lib-ignore: Determine different options for different compilers. > > * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which > > depends on the current language (C/C++/Fortran). Don't set LDFLAGS. > > A

Re: lib-ignore: link error with Sun C++ compiler

2010-03-21 Thread Bruno Haible
Ralf Wildenhues wrote: > another > complication: when libtool is used to create a shared library, ... > This only concerns library creation, not program creation. I think this limitation can be accepted. 'lib-ignore' is made for cases where a package has dozens of programs, and the maintainers don

Re: lib-ignore: link error with Sun C++ compiler

2010-03-20 Thread Ralf Wildenhues
Hi Bruno, * Bruno Haible wrote on Sat, Mar 20, 2010 at 11:52:25PM CET: > lib-ignore: Determine different options for different compilers. > * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which > depends on the current language (C/C++/Fortran). Don't set LDFLAGS.

Re: lib-ignore: link error with Sun C++ compiler

2010-03-20 Thread Bruno Haible
Hello Ralf, > > But this does not fix the problem with coreutils, as long as it has some > > source > > files in C++. I would therefore find it useful to change lib-ignore.m4 so > > that > > it sets an AC_SUBSTed variable IGNORE_UNUSED_LIBS, and coreutils/Makefile.am > > can then do > > AM_LDF

Re: lib-ignore: link error with Sun C++ compiler

2010-03-15 Thread Ralf Wildenhues
Hi Bruno, * Bruno Haible wrote on Sun, Mar 14, 2010 at 05:07:33PM CET: > But this does not fix the problem with coreutils, as long as it has some > source > files in C++. I would therefore find it useful to change lib-ignore.m4 so that > it sets an AC_SUBSTed variable IGNORE_UNUSED_LIBS, and core

Re: lib-ignore: link error with Sun C++ compiler

2010-03-14 Thread Bruno Haible
Ralf Wildenhues wrote: > > The reason is that the flag -Wl,-z,ignore is accepted by the C compiler > > (cc), but > > leads to an error with the C++ compiler (CC). > > Sun CC needs '-Qoption ld ' as prefix to linker flags (mind the trailing > space) rather than '-Wl,'. Thanks for this info. So,

Re: lib-ignore: link error with Sun C++ compiler

2010-03-07 Thread Ralf Wildenhues
Hi Bruno, * Bruno Haible wrote on Sun, Mar 07, 2010 at 10:16:39PM CET: > With the C++ tests, I'm seeing this link error on Solaris, with Sun C and Sun > C++: > > CC -O-L/home/haible/prefix-x86/lib -Wl,-z,ignore -o test-langinfo-c++ > test-langinfo-c++.o ../gllib/libgnu.a -lm -lm -lm -lm

lib-ignore: link error with Sun C++ compiler

2010-03-07 Thread Bruno Haible
Hi, With the C++ tests, I'm seeing this link error on Solaris, with Sun C and Sun C++: CC -O-L/home/haible/prefix-x86/lib -Wl,-z,ignore -o test-langinfo-c++ test-langinfo-c++.o ../gllib/libgnu.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm CC: Warning: Option -Wl,-z,ignore passed to l