From: Gilles Depeyrot Date: Thu, 5 Sep 2002 16:15:06 +0000 (+0000) Subject: -o flag must be after PIC flag for gcc under HPUX X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/85d5e282e9598208868a5ce44ee4ea270594fe82 -o flag must be after PIC flag for gcc under HPUX git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure b/configure index a609f55ec2..9252632087 100755 --- a/configure +++ b/configure @@ -15261,7 +15261,7 @@ if test "$wxUSE_SHARED" = "yes"; then case "${host}" in *-hp-hpux* ) if test "$GCC" = "yes"; then - SHARED_LD="${SHARED_LD} ${PIC_FLAG}" + SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" else LDFLAGS="$LDFLAGS -L/usr/lib" diff --git a/configure.in b/configure.in index f1460e74e1..d662e5a5f5 100644 --- a/configure.in +++ b/configure.in @@ -2673,7 +2673,8 @@ if test "$wxUSE_SHARED" = "yes"; then *-hp-hpux* ) dnl default settings are good for gcc but not for the native HP-UX if test "$GCC" = "yes"; then - SHARED_LD="${SHARED_LD} ${PIC_FLAG}" + dnl -o flag must be after PIC flag + SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" else dnl no idea why it wants it, but it does LDFLAGS="$LDFLAGS -L/usr/lib"