]> Zhao Yanbai Git Server - minix.git/commitdiff
Set MACHINE_ARCH and MACHINE_CPU to in NBSD libc Makefile
authorGianluca Guida <gianluca@minix3.org>
Tue, 22 Feb 2011 09:22:26 +0000 (09:22 +0000)
committerGianluca Guida <gianluca@minix3.org>
Tue, 22 Feb 2011 09:22:26 +0000 (09:22 +0000)
lib/nbsd_libc/libcincludes.mk
lib/nbsd_libc/minix-port.patch

index a0011bef0e5381285ddba5176d1667721a090d47..03d7df2167447dc90c428f61e09ff5203b3d4b56 100644 (file)
@@ -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}
index 5a5a3b6fb107e1a473d93a60c2a5017adf177bb0..6d8bf398c083492ef7e1bef1d520eb6de4cf069b 100644 (file)
@@ -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}