IA64 HP-UX bootstrap with C++

Joseph S. Myers joseph@codesourcery.com
Sat Jul 23 10:03:00 GMT 2011


On Fri, 22 Jul 2011, Steve Ellcey wrote:

> $ /proj/opensrc/nightly/gcc-ia64-hp-hpux11.23-trunk/bin/gcc      
> /usr/lib/hpux32/dld.so: Unable to find library 'libgcc_s.so.0'.
> 
> gcc (the driver) is now linked with C++ instead of C and
> that means it wants to use the shared libgcc instead of the
> archive one but it cannot find it.

The default is supposed to be linking with static libgcc and libstdc++ if 
you don't use configure options such as --with-boot-ldflags.

[poststage1_ldflags=
 # In stages 2 and 3, default to linking libstdc++ and libgcc
 # statically.  But if the user explicitly specified the libraries to
 # use, trust that they are doing what they want.
 if test "$poststage1_libs" = ""; then
   poststage1_ldflags="-static-libstdc++ -static-libgcc"
 fi])

Are -static-libstdc++ and -static-libgcc not working for you (with the 
stage 1 compiler when it's used to link stage 2, and the stage 2 compiler 
used to link stage 3)?  If not, fixing them if possible would be the right 
approach.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list