4a2fdf99f9
injecting -Wall -Wno-error does not cause the test to produce the wrong answer. (If it does, the wrong information is installed in /usr/include, and ultimately provokes PR 47342.)
119 lines
4.9 KiB
Text
119 lines
4.9 KiB
Text
$NetBSD: patch-al,v 1.8 2012/12/16 23:22:29 dholland Exp $
|
|
|
|
- recognize MirBSD, Interix
|
|
- remove special-case library version hack for FreeBSD
|
|
- use -Werror=format when testing HAVE_ATTRIBUTE_FORMAT_PARSETUPLE,
|
|
so injecting -Wno-error does not break the test
|
|
- honor pkgsrc LDFLAGS
|
|
- other stuff not previously commented (XXX)
|
|
|
|
--- configure.orig 2012-04-09 23:07:36.000000000 +0000
|
|
+++ configure
|
|
@@ -3019,7 +3019,7 @@ case $ac_sys_system/$ac_sys_release in
|
|
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
|
|
# In addition, Stefan Krah confirms that issue #1244610 exists through
|
|
# OpenBSD 4.6, but is fixed in 4.7.
|
|
- OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
|
|
+ OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456] | MirBSD/*)
|
|
define_xopen_source=no
|
|
# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
|
|
# also defined. This can be overridden by defining _BSD_SOURCE
|
|
@@ -4920,15 +4920,10 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>
|
|
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
|
INSTSONAME="$LDLIBRARY".$SOVERSION
|
|
;;
|
|
- Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
|
|
+ Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|Interix*|MirBSD*)
|
|
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
|
|
;;
|
|
hp*|HP*)
|
|
@@ -5731,7 +5726,7 @@ then
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
|
|
$as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
|
|
save_CFLAGS=$CFLAGS
|
|
- CFLAGS="$CFLAGS -Werror"
|
|
+ CFLAGS="$CFLAGS -Werror=format"
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
@@ -7648,9 +7643,9 @@ then
|
|
LDCXXSHARED="$LDCXXSHARED "'$(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)'
|
|
- LDCXXSHARED="$LDCXXSHARED "'-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)'
|
|
+ LDCXXSHARED="$LDCXXSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
|
|
fi ;;
|
|
Darwin/*)
|
|
# Use -undefined dynamic_lookup whenever possible (10.3 and later).
|
|
@@ -7674,15 +7669,15 @@ then
|
|
LDCXXSHARED="$LDCXXSHARED "'$(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)'
|
|
- LDCXXSHARED="$LDCXXSHARED "'-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)'
|
|
+ LDCXXSHARED="$LDCXXSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
|
|
fi
|
|
fi
|
|
;;
|
|
Linux*|GNU*|QNX*)
|
|
LDSHARED='$(CC) -shared'
|
|
- LDCXXSHARED='$(CXX) -shared';;
|
|
+ LDCXXSHARED='$(CXX) -shared'" ${LDFLAGS}";;
|
|
BSD/OS*/4*)
|
|
LDSHARED="gcc -shared"
|
|
LDCXXSHARED="g++ -shared";;
|
|
@@ -7710,9 +7705,15 @@ then
|
|
;;
|
|
esac
|
|
fi;;
|
|
+ MirBSD*)
|
|
+ LDSHARED='$(CC) -shared $(CCSHARED)'
|
|
+ LDCXXSHARED='$(CXX) -shared $(CCSHARED)';;
|
|
NetBSD*|DragonFly*)
|
|
LDSHARED='$(CC) -shared'
|
|
LDCXXSHARED='$(CXX) -shared';;
|
|
+ Interix*)
|
|
+ LDSHARED='$(CC) -shared'" ${LDFLAGS}"
|
|
+ LDCXXSHARED='$(CXX) -shared'" ${LDFLAGS}";; # XXX tv needs image-base hack
|
|
OpenUNIX*|UnixWare*)
|
|
if test "$GCC" = "yes" ; then
|
|
LDSHARED='$(CC) -shared'
|
|
@@ -7756,7 +7757,8 @@ then
|
|
fi;;
|
|
Linux*|GNU*) CCSHARED="-fPIC";;
|
|
BSD/OS*/4*) CCSHARED="-fpic";;
|
|
- FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
|
|
+ FreeBSD*|NetBSD*|OpenBSD*|MirBSD*|DragonFly*) CCSHARED="-fPIC";;
|
|
+ Interix*) CCSHARED="";;
|
|
OpenUNIX*|UnixWare*)
|
|
if test "$GCC" = "yes"
|
|
then CCSHARED="-fPIC"
|
|
@@ -7808,11 +7810,12 @@ then
|
|
OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
|
|
SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
|
|
ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
|
|
- FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
|
|
+ FreeBSD*|NetBSD*|OpenBSD*|MirBSD*|DragonFly*)
|
|
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
|
|
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
|