]> granicus.if.org Git - python/commitdiff
Issue #2544: On HP-UX systems, use 'gcc -shared' for linking when gcc
authorThomas Heller <theller@ctypes.org>
Fri, 4 Apr 2008 10:07:55 +0000 (10:07 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 4 Apr 2008 10:07:55 +0000 (10:07 +0000)
is used as compiler.

Misc/NEWS
configure
configure.in

index c07f546b9128bda946e0391899fb3eb3b9d476de..1129e78952182e7b6fd32f691c112736a79a71c5 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -28,6 +28,9 @@ Tests
 Build
 -----
 
+- Issue #2544: On HP-UX systems, use 'gcc -shared' for linking when
+  gcc is used as compiler.
+
 C API
 -----
 
index ad9f5629f3eb9d51ae1603c763d061b02e833f8c..51f9ad2f81d35dc3d7366cb5b7929f17e17fb89c 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 61847 .
+# From configure.in Revision: 61992 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for python 2.6.
 #
@@ -12417,7 +12417,11 @@ then
                then LDSHARED='$(CC) -shared'
                else LDSHARED='$(CC) -G';
                fi ;;
-       hp*|HP*) LDSHARED="ld -b";;
+       hp*|HP*)
+               if test "$GCC" = "yes"
+               then LDSHARED='$(CC) -shared'
+               else LDSHARED='ld -b';
+               fi ;;
        OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
        Darwin/1.3*)
                LDSHARED='$(CC) $(LDFLAGS) -bundle'
index 37c127918ec14ec7e38d11c68a8ba2fec8567604..05dd87ad52a0066856466fdc188cf20306f37eae 100644 (file)
@@ -1485,7 +1485,11 @@ then
                then LDSHARED='$(CC) -shared'
                else LDSHARED='$(CC) -G';
                fi ;;
-       hp*|HP*) LDSHARED="ld -b";;
+       hp*|HP*)
+               if test "$GCC" = "yes"
+               then LDSHARED='$(CC) -shared'
+               else LDSHARED='ld -b';
+               fi ;;
        OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
        Darwin/1.3*)
                LDSHARED='$(CC) $(LDFLAGS) -bundle'