summaryrefslogtreecommitdiffstats
path: root/lib/libstand
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2013-04-16 17:20:52 +0000
committerrwatson <rwatson@FreeBSD.org>2013-04-16 17:20:52 +0000
commit8bcd0583fd9d497c50cd53cbb24508521e630b2d (patch)
tree094e5e19ca0a0d2057ded52e3138896ef920dcf3 /lib/libstand
parentaa1e549808db532444fe2623a7ec23496dcd5e21 (diff)
downloadFreeBSD-src-8bcd0583fd9d497c50cd53cbb24508521e630b2d.zip
FreeBSD-src-8bcd0583fd9d497c50cd53cbb24508521e630b2d.tar.gz
Use a suitable code generation when building libstand for MIPS.
Reviewed by: imp Sponsored by: DARPA, AFRL MFC after: 3 days
Diffstat (limited to 'lib/libstand')
-rw-r--r--lib/libstand/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile
index 2886e92..4241933 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 \
OpenPOWER on IntegriCloud