From: Gianluca Guida Date: Tue, 22 Feb 2011 09:22:26 +0000 (+0000) Subject: Set MACHINE_ARCH and MACHINE_CPU to in NBSD libc Makefile X-Git-Tag: v3.2.0~650 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/man.7.txt?a=commitdiff_plain;h=dc75514afc82cdce59a5fe49d62e491b7e721593;p=minix.git Set MACHINE_ARCH and MACHINE_CPU to in NBSD libc Makefile --- diff --git a/lib/nbsd_libc/libcincludes.mk b/lib/nbsd_libc/libcincludes.mk index a0011bef0..03d7df216 100644 --- a/lib/nbsd_libc/libcincludes.mk +++ b/lib/nbsd_libc/libcincludes.mk @@ -4,6 +4,8 @@ # inside libc's include tree. .if defined(__MINIX) +MACHINE_ARCH= ${MACHINE} +MACHINE_CPU= ${MACHINE} .if defined(LIBC_MACHINE_ARCH) && \ exists(${MINIXSRCDIR}/lib/nbsd_libc/arch/${LIBC_MACHINE_ARCH}/SYS.h) ARCHSUBDIR= ${LIBC_MACHINE_ARCH} diff --git a/lib/nbsd_libc/minix-port.patch b/lib/nbsd_libc/minix-port.patch index 5a5a3b6fb..6d8bf398c 100644 --- a/lib/nbsd_libc/minix-port.patch +++ b/lib/nbsd_libc/minix-port.patch @@ -1364,12 +1364,14 @@ diff -ru /home/netbsd/src/lib/libc/include/namespace.h ./include/namespace.h diff -ru /home/netbsd/src/lib/libc/libcincludes.mk ./libcincludes.mk --- /home/netbsd/src/lib/libc/libcincludes.mk 2008-10-26 07:28:06.000000000 +0000 -+++ ./libcincludes.mk 2011-02-21 12:57:21.000000000 +0000 -@@ -3,6 +3,22 @@ ++++ ./libcincludes.mk 2011-02-21 13:47:02.000000000 +0000 +@@ -3,6 +3,24 @@ # Makefile fragment shared across several parts that want to look # inside libc's include tree. +.if defined(__MINIX) ++MACHINE_ARCH= ${MACHINE} ++MACHINE_CPU= ${MACHINE} +.if defined(LIBC_MACHINE_ARCH) && \ + exists(${MINIXSRCDIR}/lib/nbsd_libc/arch/${LIBC_MACHINE_ARCH}/SYS.h) +ARCHSUBDIR= ${LIBC_MACHINE_ARCH} @@ -1388,7 +1390,7 @@ diff -ru /home/netbsd/src/lib/libc/libcincludes.mk ./libcincludes.mk .if defined(LIBC_MACHINE_ARCH) && \ exists(${NETBSDSRCDIR}/lib/libc/arch/${LIBC_MACHINE_ARCH}/SYS.h) ARCHSUBDIR= ${LIBC_MACHINE_ARCH} -@@ -17,3 +33,4 @@ +@@ -17,3 +35,4 @@ .endif ARCHDIR= ${NETBSDSRCDIR}/lib/libc/arch/${ARCHSUBDIR}