summaryrefslogtreecommitdiffstats
path: root/lib/libstand/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libstand/Makefile')
-rw-r--r--lib/libstand/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile
index 2886e92..506b564 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 \
@@ -51,9 +54,7 @@ SRCS+= ntoh.c
# string functions from libc
.PATH: ${.CURDIR}/../libc/string
-.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "powerpc" || \
- ${MACHINE_CPUARCH} == "sparc64" || ${MACHINE_CPUARCH} == "amd64" || \
- ${MACHINE_CPUARCH} == "arm"
+.if ${MACHINE_CPUARCH} != "ia64"
SRCS+= bcmp.c bcopy.c bzero.c ffs.c memccpy.c memchr.c memcmp.c memcpy.c \
memmove.c memset.c qdivrem.c strcat.c strchr.c strcmp.c strcpy.c \
strcspn.c strlen.c strncat.c strncmp.c strncpy.c strpbrk.c \
OpenPOWER on IntegriCloud