------- Comment #8 from sje at cup dot hp dot com 2005-11-10 00:08 -------
I tried Jim Wilson's suggested changes (with 3.4.4 GCC) but they didn't
seem to fix the problem.
I changed LIBGCC_SPEC to:
#define LIBGCC_SPEC \
"%{shared-libgcc:%{mlp64:-lgcc_s_hpux64}} -lgcc"
But if I compile with -shared, I still see -lgcc:
install/bin/gcc -shared -v hi.c -o x.so
/proj/opensrc/sje/svn/gcc.34/install/libexec/gcc/ia64-hp-hpux11.23/3.4.4
/collect2 +Accept TypeMismatch -b -o x.so
-L/proj/opensrc/sje/svn/gcc.34/install
/lib/gcc/ia64-hp-hpux11.23/3.4.4 -L/usr/ccs/bin -L/usr/ccs/lib
-L/proj/opensrc/s
je/svn/gcc.34/install/lib/gcc/ia64-hp-hpux11.23/3.4.4/../../..
/var/tmp//ccJVUul
W.o -lgcc -lgcc
If I look at the specs file I see:
*libgcc:
%{shared-libgcc:%{mlp64:-lgcc_s_hpux64}} -lgcc
I am not sure what is going on here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24718