[PATCH] ada: fix build on GNU/kFreeBSD
Aurelien Jarno
aurelien@aurel32.net
Sat Nov 17 00:33:00 GMT 2007
The patch below fixes the build of the ada frontend on GNU/kFreeBSD. It
corresponds to changes that have been done on other targets. Tested on
GNU/kFreeBSD i386. Please apply.
2007-11-16 Aurelien Jarno <aurelien@aurel32.net>
* s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
* Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu.
Remove SYMLIB.
--- a/gcc/ada/s-osinte-kfreebsd-gnu.ads 2007-11-16 09:45:33 +0100
+++ b/gcc/ada/s-osinte-kfreebsd-gnu.ads 2007-11-16 09:46:08 +0100
@@ -233,6 +233,10 @@
SCHED_OTHER : constant := 2;
SCHED_RR : constant := 3;
+ function To_Target_Priority
+ (Prio : System.Any_Priority) return Interfaces.C.int;
+ -- Maps System.Any_Priority to a POSIX priority.
+
-------------
-- Process --
-------------
--- a/gcc/ada/Makefile.in 2007-11-16 10:58:53 +0100
+++ b/gcc/ada/Makefile.in 2007-11-16 10:59:16 +0100
@@ -879,7 +879,7 @@
mlib-tgt.adb<mlib-tgt-linux.adb \
indepsw.adb<indepsw-gnu.adb
- SYMLIB = -laddr2line -lbfd -liberty $(LIBINTL)
+ EH_MECHANISM=-gcc
THREADSLIB = -lpthread
GNATLIB_SHARED = gnatlib-shared-dual
GMEM_LIB = gmemlib
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
More information about the Gcc-patches
mailing list