mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
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
This commit is contained in:
parent
8ad1dd7df1
commit
3076559ea5
4 changed files with 35 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue