-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
This commit is contained in:
Gilles Depeyrot
2002-09-05 16:15:06 +00:00
parent 2385ec429a
commit 85d5e282e9
2 changed files with 3 additions and 2 deletions

2
configure vendored
View File

@@ -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"

View File

@@ -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"