make: set MACHINE_ARCH variable
Also, modify sys.mk so we continue to build with -O
This commit is contained in:
		
							parent
							
								
									f379b3eecb
								
							
						
					
					
						commit
						3f9ef4ac46
					
				@ -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
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user