PERFORCE change 227281 for review
Robert Watson
rwatson at FreeBSD.org
Mon Apr 1 19:25:35 UTC 2013
http://p4web.freebsd.org/@@227281?ac=10
Change 227281 by rwatson at rwatson_zenith_cl_cam_ac_uk on 2013/04/01 19:25:05
Use appropriate compiler and linker flags when compiling libstand
and libficl on MIPS. These correspond loosely to similar flags
already set for other architectures.
Affected files ...
.. //depot/projects/ctsrd/beribsd/src/lib/libstand/Makefile#4 edit
.. //depot/projects/ctsrd/beribsd/src/sys/boot/ficl/Makefile#4 edit
Differences ...
==== //depot/projects/ctsrd/beribsd/src/lib/libstand/Makefile#4 (text+ko) ====
@@ -36,6 +36,9 @@
.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 \
@@ -53,7 +56,7 @@
.PATH: ${.CURDIR}/../libc/string
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "powerpc" || \
${MACHINE_CPUARCH} == "sparc64" || ${MACHINE_CPUARCH} == "amd64" || \
- ${MACHINE_CPUARCH} == "arm"
+ ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips"
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 \
@@ -90,6 +93,8 @@
.PATH: ${.CURDIR}/i386
.elif ${MACHINE_ARCH} == "powerpc64"
.PATH: ${.CURDIR}/powerpc
+.elif ${MACHINE_ARCH} == "mips64"
+.PATH: ${.CURDIR}/mips
.else
.PATH: ${.CURDIR}/${MACHINE_CPUARCH}
.endif
==== //depot/projects/ctsrd/beribsd/src/sys/boot/ficl/Makefile#4 (text+ko) ====
@@ -27,6 +27,9 @@
.if ${MACHINE} == "pc98"
CFLAGS+= -Os -DPC98
.endif
+.if ${MACHINE_CPUARCH} == "mips"
+CFLAGS+= -G0 -fno-pic -mno-abicalls
+.endif
.if HAVE_PNP
CFLAGS+= -DHAVE_PNP
.endif
More information about the p4-projects
mailing list