summaryrefslogtreecommitdiffstats
path: root/Include/pyport.h
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 /Include/pyport.h
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 'Include/pyport.h')
-rw-r--r--Include/pyport.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index c358cc2..06ce6ab 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -421,7 +421,8 @@ extern double hypot(double, double);
# define HAVE_DECLSPEC_DLL
#endif
-#if defined(Py_ENABLE_SHARED) /* only get special linkage if built as shared */
+/* only get special linkage if built as shared or platform is Cygwin */
+#if defined(Py_ENABLE_SHARED) || defined(__CYGWIN__)
# if defined(HAVE_DECLSPEC_DLL)
# ifdef Py_BUILD_CORE
# define PyAPI_FUNC(RTYPE) __declspec(dllexport) RTYPE