8fea9ce29c
- fix suggested by Simon Kuhn in PR 29735 Add a patch from Antoine Reilles submitted in PR 30466 to fix the buid of some modules on OS X 10.4. Bump PKGREVISION
139 lines
4.8 KiB
Text
139 lines
4.8 KiB
Text
$NetBSD: patch-al,v 1.13 2005/07/03 19:49:06 recht Exp $
|
|
|
|
--- configure.orig 2005-01-11 14:48:52.000000000 +0100
|
|
+++ configure 2005-07-01 15:27:58.000000000 +0200
|
|
@@ -1481,6 +1481,8 @@
|
|
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
|
|
OpenBSD/2.* | OpenBSD/3.[01234])
|
|
define_xopen_source=no;;
|
|
+ NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
|
|
+ define_xopen_source=no;;
|
|
# On Solaris 2.6, sys/wait.h is inconsistent in the usage
|
|
# of union __?sigval. Reported by Stuart Bishop.
|
|
SunOS/5.6)
|
|
@@ -1498,13 +1500,18 @@
|
|
# it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
|
|
# this is fixed in 10.3, which identifies itself as Darwin/7.*
|
|
# This should hopefully be fixed in FreeBSD 4.9
|
|
- FreeBSD/4.8* | Darwin/6* )
|
|
+ FreeBSD/4.8* | Darwin/6* | Darwin/8* )
|
|
define_xopen_source=no;;
|
|
# On AIX 4, mbstate_t is defined only when _XOPEN_SOURCE == 500 but used in
|
|
# wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined or
|
|
# has another value. By not (re)defining it, the defaults come in place.
|
|
AIX/4)
|
|
define_xopen_source=no;;
|
|
+ # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
|
|
+ # disables platform specific features beyond repair.
|
|
+ Darwin/8.*)
|
|
+ define_xopen_source=no
|
|
+ ;;
|
|
esac
|
|
|
|
if test $define_xopen_source = yes
|
|
@@ -3733,7 +3740,7 @@
|
|
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
|
INSTSONAME="$LDLIBRARY".$SOVERSION
|
|
;;
|
|
- Linux*|GNU*|NetBSD*)
|
|
+ Linux*|GNU*|NetBSD*|FreeBSD*|Interix*)
|
|
LDLIBRARY='libpython$(VERSION).so'
|
|
BLDLIBRARY='-L. -lpython$(VERSION)'
|
|
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
|
@@ -3754,6 +3761,14 @@
|
|
BLDLIBRARY='-L. -lpython$(VERSION)'
|
|
RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
|
|
;;
|
|
+ Darwin*)
|
|
+ if test -z "$enable_framework"; then
|
|
+ LDLIBRARY='libpython$(VERSION).dylib'
|
|
+ BLDLIBRARY='-L. -lpython$(VERSION)'
|
|
+ RUNSHARED=DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}
|
|
+ fi
|
|
+ ;;
|
|
+
|
|
esac
|
|
# DG/UX requires some fancy ld contortions to produce a .so from an .a
|
|
case $MACHDEP in
|
|
@@ -4152,7 +4167,12 @@
|
|
;;
|
|
# 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 -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common"
|
|
+ else
|
|
+ BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -fno-common"
|
|
+ fi
|
|
;;
|
|
esac
|
|
;;
|
|
@@ -10979,7 +10999,7 @@
|
|
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
|
else
|
|
# No framework. Ignore undefined symbols, assuming they come from Python
|
|
- LDSHARED="$LDSHARED -undefined suppress"
|
|
+ LDSHARED="$LDSHARED -flat_namespace -undefined suppress"
|
|
fi ;;
|
|
Darwin/1.4*|Darwin/5.*|Darwin/6.*)
|
|
LDSHARED='$(CC) $(LDFLAGS) -bundle'
|
|
@@ -11009,12 +11029,12 @@
|
|
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}';;
|
|
dgux*) LDSHARED="ld -G";;
|
|
BSD/OS*/4*) LDSHARED="gcc -shared";;
|
|
OpenBSD*|FreeBSD*)
|
|
@@ -11024,7 +11044,8 @@
|
|
else
|
|
LDSHARED="ld -Bshareable ${LDFLAGS}"
|
|
fi;;
|
|
- NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";;
|
|
+ NetBSD*) 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'
|
|
@@ -11057,6 +11078,7 @@
|
|
Linux*|GNU*) CCSHARED="-fPIC";;
|
|
BSD/OS*/4*) CCSHARED="-fpic";;
|
|
FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
|
|
+ Interix*) CCSHARED="";;
|
|
OpenUNIX*|UnixWare*)
|
|
if test "$GCC" = "yes"
|
|
then CCSHARED="-fPIC"
|
|
@@ -11116,6 +11138,7 @@
|
|
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
|
|
@@ -13357,7 +13380,7 @@
|
|
_ACEOF
|
|
|
|
;;
|
|
- SunOS/5.8)
|
|
+ SunOS/5.8 | Darwin/8* )
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_BROKEN_POSIX_SEMAPHORES 1
|
|
_ACEOF
|
|
@@ -15127,6 +15150,7 @@
|
|
/* end confdefs.h. */
|
|
|
|
#include "confdefs.h"
|
|
+#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|