diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.330 . +# From configure.in Revision: 1.332 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.53. # @@ -1225,6 +1225,7 @@ VERSION=2.3 SOVERSION=1.0 + cat >>confdefs.h <<\_ACEOF #define _XOPEN_SOURCE 500 _ACEOF @@ -1347,8 +1348,7 @@ else ppc) CC=mwcc without_gcc=yes - OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma" - CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" + OPT="-O -export pragma" LDFLAGS="$LDFLAGS -nodup" ;; x86) @@ -3107,6 +3107,11 @@ fi # Other platforms follow if test $enable_shared = "yes"; then + +cat >>confdefs.h <<\_ACEOF +#define Py_ENABLE_SHARED 1 +_ACEOF + case $ac_sys_system in BeOS*) LDLIBRARY='libpython$(VERSION).so' @@ -8820,7 +8825,6 @@ then *gcc*) CCSHARED="-shared";; *) CCSHARED="";; esac;; - CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; atheos*) CCSHARED="-fPIC";; esac fi |