summaryrefslogtreecommitdiff
path: root/newlib/patches/03-newlib-newlib-configure-host.patch
blob: 64f7058a45eb20ceea77e29c8e565c2d92536b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh
patch -p1 -f $* < $0
exit $?

Configure newlib for the Hurd.


Index: newlib/configure.host
===================================================================
RCS file: /cvs/src/src/newlib/configure.host,v
retrieving revision 1.97
diff -u -p -r1.97 configure.host
--- newlib/newlib/configure.host	7 Nov 2007 21:42:24 -0000	1.97
+++ newlib/newlib/configure.host	20 Jan 2008 20:03:05 -0000
@@ -391,6 +391,13 @@ case "${host}" in
   h8500-*-elf*)
 	sys_dir=h8500hms
 	;;
+  *-gnu*)
+	sys_dir=hurd
+	syscalls_dir=syscalls
+	newlib_cflags="${newlib_cflags} -Wall \
+	  -DMALLOC_PROVIDED -DSIGNAL_PROVIDED \
+	  -DHAVE_DD_LOCK -DREENTRANT_SYSCALLS_PROVIDED -D_GNU_SOURCE"
+	;;
   i[34567]86-*-rdos*)
 	sys_dir=rdos
 	newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"