From a49ab93ce2cce210b1116ad6815757eec28444af Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Tue, 16 Apr 2013 17:20:52 +0000 Subject: [PATCH] Use a suitable code generation when building libstand for MIPS. Reviewed by: imp Sponsored by: DARPA, AFRL MFC after: 3 days --- lib/libstand/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile index 2886e927fab4..4241933e66ea 100644 --- a/lib/libstand/Makefile +++ b/lib/libstand/Makefile @@ -36,6 +36,9 @@ CFLAGS+= -m32 -I. .if ${MACHINE_CPUARCH} == "arm" CFLAGS+= -msoft-float -D_STANDALONE .endif +.if ${MACHINE_CPUARCH} == "mips" +CFLAGS+= -G0 -fno-pic -mno-abicalls +.endif # standalone components and stuff we have modified locally SRCS+= gzguts.h zutil.h __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \