]> Zhao Yanbai Git Server - minix.git/commitdiff
make: set MACHINE_ARCH variable
authorArun Thomas <arun@minix3.org>
Fri, 18 Nov 2011 15:12:30 +0000 (16:12 +0100)
committerArun Thomas <arun@minix3.org>
Fri, 18 Nov 2011 15:22:25 +0000 (16:22 +0100)
Also, modify sys.mk so we continue to build with -O

commands/make/Makefile
lib/nbsd_libm/Makefile
share/mk/sys.mk

index 3c451ccaea5842d679a7e818fb08b685b3c69e3c..bc7fd639ea1c7ebc30dbb1bf9ffca3c1e67edc89 100644 (file)
@@ -21,7 +21,8 @@ MACHINE=${ARCH}
 MACHINE_ARCH=${ARCH}
 CPPFLAGS+= -DTARGET_MACHINE=\"${MACHINE}\" \
        -DTARGET_MACHINE_ARCH=\"${MACHINE_ARCH}\" \
-       -DMAKE_MACHINE=\"${MACHINE}\"
+       -DMAKE_MACHINE=\"${MACHINE}\" \
+       -DMAKE_MACHINE_ARCH=\"${MACHINE_ARCH}\"
 
 
  .PATH:        ${.CURDIR}/lst.lib
index 2816882e48c4ef103be739780e6b142169822877..3c3de53b99acdb80c31cc5ef491a8b7e0e227049 100644 (file)
 #
 #
 
-.if ${MACHINE_ARCH} == "unknown"
-MACHINE_ARCH:= ${MACHINE}
-.endif
-
 #
 # There are two options in making libm at fdlibm compile time:
 #      _IEEE_LIBM      --- IEEE libm; smaller, and somewhat faster
index dd8c634a20e461e10eea45abe6a711f165bb55b9..8473f8344847bd6f46d12d157e5432c9dcc27001 100644 (file)
@@ -36,7 +36,9 @@ CC?=          cc
     ${MACHINE_ARCH} == "powerpc" || \
     ${MACHINE_ARCH} == "sparc" || \
     ${MACHINE_ARCH} == "sparc64"
-DBG?=  -O2
+#DBG?= -O2
+#MINIX: use -O for now
+DBG?=  -O
 .elif ${MACHINE_ARCH} == "sh3el" || ${MACHINE_ARCH} == "sh3eb"
 # -O2 is too -falign-* zealous for low-memory sh3 machines
 DBG?=  -Os -freorder-blocks