From: Arun Thomas Date: Fri, 18 Nov 2011 15:12:30 +0000 (+0100) Subject: make: set MACHINE_ARCH variable X-Git-Tag: v3.2.0~244 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch10.html?a=commitdiff_plain;h=3f9ef4ac4659669546c524815b52afb3af175ea9;p=minix.git make: set MACHINE_ARCH variable Also, modify sys.mk so we continue to build with -O --- diff --git a/commands/make/Makefile b/commands/make/Makefile index 3c451ccae..bc7fd639e 100644 --- a/commands/make/Makefile +++ b/commands/make/Makefile @@ -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 diff --git a/lib/nbsd_libm/Makefile b/lib/nbsd_libm/Makefile index 2816882e4..3c3de53b9 100644 --- a/lib/nbsd_libm/Makefile +++ b/lib/nbsd_libm/Makefile @@ -13,10 +13,6 @@ # # -.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 diff --git a/share/mk/sys.mk b/share/mk/sys.mk index dd8c634a2..8473f8344 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -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