summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-04-04 10:07:55 (GMT)
committerThomas Heller <theller@ctypes.org>2008-04-04 10:07:55 (GMT)
commitdc96a77c3adc79694382a994249a3ec526d6f526 (patch)
treeba921d54868db084b105be22b5fbc4ea5e999ce7
parent8e8ba151dde6e36a972ef64240f48d63251c43a5 (diff)
downloadcpython-dc96a77c3adc79694382a994249a3ec526d6f526.zip
cpython-dc96a77c3adc79694382a994249a3ec526d6f526.tar.gz
cpython-dc96a77c3adc79694382a994249a3ec526d6f526.tar.bz2
Issue #2544: On HP-UX systems, use 'gcc -shared' for linking when gcc
is used as compiler.
-rw-r--r--Misc/NEWS3
-rwxr-xr-xconfigure8
-rw-r--r--configure.in6
3 files changed, 14 insertions, 3 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index c07f546..1129e78 100644
--- 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
-----
diff --git a/configure b/configure
index ad9f562..51f9ad2 100755
--- 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'
diff --git a/configure.in b/configure.in
index 37c1279..05dd87a 100644
--- a/configure.in
+++ b/configure.in
@@ -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'