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
> * 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
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
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.
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
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
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,
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
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