summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJason Tishler <jason@tishler.net>2003-09-04 11:04:06 (GMT)
committerJason Tishler <jason@tishler.net>2003-09-04 11:04:06 (GMT)
commit3076559ea5d36d9795edc32e2fae7949b875d7ef (patch)
treee49bc5e2702644ded35d213f91a6465ada389523 /configure
parent8ad1dd7df11454abf51354e4f6ddef69167088f9 (diff)
downloadcpython-3076559ea5d36d9795edc32e2fae7949b875d7ef.zip
cpython-3076559ea5d36d9795edc32e2fae7949b875d7ef.tar.gz
cpython-3076559ea5d36d9795edc32e2fae7949b875d7ef.tar.bz2
This patch enables the building of Cygwin Python with a static core
which still supports shared extensions. It takes advantage the latest Cygwin binutils (i.e., 20030901-1) which can export symbols from executables: http://cygwin.com/ml/cygwin-announce/2003-09/msg00002.html Additionally, it finally lays to rest the following mailing list subthread: http://mail.python.org/pipermail/python-list/2002-May/102500.html I tested the patch under Red Hat Linux 8.0 too
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure b/configure
index 795d5cd..0f74a29 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 1.428 .
+# From configure.in Revision: 1.429 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.57 for python 2.4.
#
@@ -3619,6 +3619,13 @@ _ACEOF
BASECFLAGS="$BASECFLAGS -pic"
;;
esac
+else # shared is disabled
+ case $ac_sys_system in
+ CYGWIN*)
+ BLDLIBRARY='$(LIBRARY)'
+ LDLIBRARY='libpython$(VERSION).dll.a'
+ ;;
+ esac
fi
echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
@@ -10192,6 +10199,11 @@ then
LINKFORSHARED="-Xlinker --export-dynamic"
fi;;
esac;;
+ CYGWIN*)
+ if test $enable_shared = "no"
+ then
+ LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
+ fi;;
esac
fi
echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5