109 lines
3.9 KiB
Text
109 lines
3.9 KiB
Text
$NetBSD: patch-al,v 1.6 2011/09/14 17:06:32 hans Exp $
|
|
|
|
--- configure.orig 2011-09-07 15:28:20.710346391 +0200
|
|
+++ configure 2011-09-07 15:30:02.126868889 +0200
|
|
@@ -2058,10 +2058,10 @@ if test $define_xopen_source = yes
|
|
then
|
|
# On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
|
|
# defined precisely as g++ defines it
|
|
- # Furthermore, on Solaris 10, XPG6 requires the use of a C99
|
|
+ # Furthermore, on Solaris >10, XPG6 requires the use of a C99
|
|
# compiler
|
|
case $ac_sys_system/$ac_sys_release in
|
|
- SunOS/5.8|SunOS/5.9|SunOS/5.10)
|
|
+ SunOS/5.8|SunOS/5.9|SunOS/5.10|SunOS/5.11)
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define _XOPEN_SOURCE 500
|
|
@@ -2081,10 +2081,10 @@ _ACEOF
|
|
# definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
|
|
# several APIs are not declared. Since this is also needed in some
|
|
# cases for HP-UX, we define it globally.
|
|
- # except for Solaris 10, where it must not be defined,
|
|
+ # except for Solaris >10, where it must not be defined,
|
|
# as it implies XPG4.2
|
|
case $ac_sys_system/$ac_sys_release in
|
|
- SunOS/5.10)
|
|
+ SunOS/5.10|SunOS/5.11)
|
|
;;
|
|
*)
|
|
|
|
@@ -4014,17 +4014,18 @@ _ACEOF
|
|
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
|
INSTSONAME="$LDLIBRARY".$SOVERSION
|
|
;;
|
|
- Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
|
|
+ Linux*|GNU*|NetBSD*|FreeBSD*|Interix*|DragonFly*)
|
|
LDLIBRARY='libpython$(VERSION).so'
|
|
BLDLIBRARY='-L. -lpython$(VERSION)'
|
|
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
|
- case $ac_sys_system in
|
|
- FreeBSD*)
|
|
- SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
|
|
- ;;
|
|
- esac
|
|
INSTSONAME="$LDLIBRARY".$SOVERSION
|
|
;;
|
|
+ Darwin*)
|
|
+ LDLIBRARY='libpython$(VERSION).dylib'
|
|
+ BLDLIBRARY='-L. -lpython$(VERSION)'
|
|
+ RUNSHARED=DYLD_FALLBACK_LIBRARY_PATH=`pwd`:${DYLD_FALLBACK_LIBRARY_PATH}
|
|
+ INSTSONAME="$LDLIBRARY"
|
|
+ ;;
|
|
hp*|HP*)
|
|
case `uname -m` in
|
|
ia64)
|
|
@@ -4534,7 +4535,12 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing
|
|
;;
|
|
# is there any other compiler on Darwin besides gcc?
|
|
Darwin*)
|
|
- BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
|
|
+ if [[ `/usr/bin/arch` = 'ppc' ]]
|
|
+ then
|
|
+ BASECFLAGS="$BASECFLAGS -no-cpp-precomp -mno-fused-madd -fno-common"
|
|
+ else
|
|
+ BASECFLAGS="$BASECFLAGS -no-cpp-precomp -fno-common"
|
|
+ fi
|
|
if test "${enable_universalsdk}"; then
|
|
BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
|
|
fi
|
|
@@ -11536,12 +11542,12 @@ then
|
|
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
|
else
|
|
# No framework, use the Python app as bundle-loader
|
|
- BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
|
|
- LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
|
|
+ BLDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BUILDPYTHON)'
|
|
+ LDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
|
|
fi
|
|
fi
|
|
;;
|
|
- Linux*|GNU*) LDSHARED='$(CC) -shared';;
|
|
+ Linux*|GNU*) LDSHARED='$(CC) -shared'" ${LDFLAGS}";;
|
|
BSD/OS*/4*) LDSHARED="gcc -shared";;
|
|
FreeBSD*)
|
|
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
|
|
@@ -11565,6 +11571,7 @@ then
|
|
esac
|
|
fi;;
|
|
NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
|
|
+ Interix*) LDSHARED='$(CC) -shared'" ${LDFLAGS}";; # XXX tv needs image-base hack
|
|
OpenUNIX*|UnixWare*)
|
|
if test "$GCC" = "yes"
|
|
then LDSHARED='$(CC) -shared'
|
|
@@ -11600,6 +11607,7 @@ then
|
|
Linux*|GNU*) CCSHARED="-fPIC";;
|
|
BSD/OS*/4*) CCSHARED="-fpic";;
|
|
FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
|
|
+ Interix*) CCSHARED="";;
|
|
OpenUNIX*|UnixWare*)
|
|
if test "$GCC" = "yes"
|
|
then CCSHARED="-fPIC"
|
|
@@ -11657,6 +11665,7 @@ then
|
|
then
|
|
LINKFORSHARED="-Wl,--export-dynamic"
|
|
fi;;
|
|
+ Interix*) LINKFORSHARED="-Wl,-E";;
|
|
SunOS/5*) case $CC in
|
|
*gcc*)
|
|
if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
|