Also, modify sys.mk so we continue to build with -O
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
#
#
-.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
${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