[patch] python support configuration for FreeBSD64 broken, other BSDs not supported
John Marino <[email protected]> Tue, 11 Oct 2011 13:49:43 +0200
| Newsgroups | gmane.comp.ide.gps.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------090105050107060203050305
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hi,
I discovered python support wasn't getting compiled into GPS 5.0.1 on an
AMD64 FreeBSD machine even though it was explicitly requested. The log
said the configure test failed due to use of "-ldl" which isn't
available on FreeBSD. Looking at the configure script, it was obvious
that targets such as x86_64-unknown-freebsd8.2 were hitting a
way-too-general x86_64-*-* case before it could reach the *-freebsd* case.
The quick solution is to put the freebsd case in front of the x86_64
case. At the same time, missing support for NetBSD, OpenBSD, and
DragonFly can be added.
The proposed patches are attached.
Regards,
John
--------------090105050107060203050305
Content-Type: text/plain;
name="patch-gnatlib_aclocal.m4"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="patch-gnatlib_aclocal.m4"
--- gnatlib/aclocal.m4.orig 2010-07-19 10:57:13.000000000 +0200
+++ gnatlib/aclocal.m4 2011-10-11 03:05:28.000000000 +0200
@@ -452,6 +452,18 @@
*-darwin* )
PYTHON_LIBS="-ldl -lm ${PYTHON_LIBS}"
;;
+ *-freebsd* )
+ PYTHON_LIBS="-lm -lutil ${PYTHON_LIBS}"
+ ;;
+ *-dragonfly* )
+ PYTHON_LIBS="-lm -lutil ${PYTHON_LIBS}"
+ ;;
+ *-netbsd* )
+ PYTHON_LIBS="-lm -lutil ${PYTHON_LIBS}"
+ ;;
+ *-openbsd* )
+ PYTHON_LIBS="-lm -lutil ${PYTHON_LIBS}"
+ ;;
x86_64-*-* )
PYTHON_LIBS="-Wl,-export-dynamic -lm -ldl ${PYTHON_LIBS}"
;;
@@ -460,9 +472,6 @@
;;
i[[3456]]86-*win32* | i[[3456]]86-*mingw32* | i[[3456]]86-*cygwin* )
;;
- *-freebsd* )
- PYTHON_LIBS="-lm -lutil ${PYTHON_LIBS}"
- ;;
esac
if test -f ${PYTHON_DIR}/libpython${PYTHON_VERSION}.a ; then
--------------090105050107060203050305
Content-Type: text/plain;
name="patch-gnatlib_configure"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="patch-gnatlib_configure"
--- gnatlib/configure.orig 2010-10-14 12:02:43.000000000 +0200
+++ gnatlib/configure 2011-10-11 03:07:02.000000000 +0200
@@ -3501,6 +3501,9 @@
*-darwin* )
PYTHON_LIBS="-ldl -lm ${PYTHON_LIBS}"
;;
+ *-freebsd* | *-dragonfly* | *-netbsd* | *-openbsd* )
+ PYTHON_LIBS="-lm -lutil ${PYTHON_LIBS}"
+ ;;
x86_64-*-* )
PYTHON_LIBS="-Wl,-export-dynamic -lm -ldl ${PYTHON_LIBS}"
;;
@@ -3509,9 +3512,6 @@
;;
i[3456]86-*win32* | i[3456]86-*mingw32* | i[3456]86-*cygwin* )
;;
- *-freebsd* )
- PYTHON_LIBS="-lm -lutil ${PYTHON_LIBS}"
- ;;
esac
if test -f ${PYTHON_DIR}/libpython${PYTHON_VERSION}.a ; then
--------------090105050107060203050305
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
gps-devel mailing list
[email protected]
http://lists.adacore.com/mailman/listinfo/gps-devel
--------------090105050107060203050305--