[Python-checkins] python/dist/src/Include pyport.h,2.61,2.62

jlt63 at users.sourceforge.net jlt63 at users.sourceforge.net
Thu Sep 4 05:04:09 EDT 2003


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv8405/Include

Modified Files:
	pyport.h 
Log Message:
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


Index: pyport.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pyport.h,v
retrieving revision 2.61
retrieving revision 2.62
diff -C2 -d -r2.61 -r2.62
*** pyport.h	10 May 2003 07:36:54 -0000	2.61
--- pyport.h	4 Sep 2003 11:04:06 -0000	2.62
***************
*** 422,426 ****
  #endif
  
! #if defined(Py_ENABLE_SHARED) /* only get special linkage if built as shared */
  #	if defined(HAVE_DECLSPEC_DLL)
  #		ifdef Py_BUILD_CORE
--- 422,427 ----
  #endif
  
! /* 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





More information about the Python-checkins mailing list