On Mon, 2011-07-25 at 19:06 +0200, Rainer Orth wrote: > Joseph, > > > 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. > > unless HP-UX ld supports -Bstatic/-Bdynamic and --help, the > corresponding section in gcc/configure.ac (gcc_cv_ld_static_dynamic and > friends) needs to be updated. I had to do the same for Solaris, IRIX > and Tru64 UNIX. > > Rainer
I think you and Joseph are right. I need to define gcc_cv_ld_static_dynamic and friends to get -static-libstdc++ and -static-libgcc to work properly. The problem is that when I do this it gets used for -lunwind as well as libgcc and libstdc++. I use the HP-UX system libunwind and that comes as a shared library only. So I need to have some kind of an override so that even when USE_LIBUNWIND_EXCEPTIONS and HAVE_LD_STATIC_DYNAMIC are set I don't try to use a static unwind library. I am testing with a hack right now to verify that it all works when I do override this part of the driver to use a dynamic libunwind even with -static-libgcc and -static-libstdc++. Steve Ellcey s...@cup.hp.com