summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjchandra <jchandra@FreeBSD.org>2011-01-27 14:16:12 +0000
committerjchandra <jchandra@FreeBSD.org>2011-01-27 14:16:12 +0000
commitcb008dd1afea31668df80b23122049573f039ea1 (patch)
tree1dfb986cfb1c77ea2700781565a806a5ddbbae98
parentfee911616d6df81070cda386c26487c4ae2fdaef (diff)
downloadFreeBSD-src-cb008dd1afea31668df80b23122049573f039ea1.zip
FreeBSD-src-cb008dd1afea31668df80b23122049573f039ea1.tar.gz
Fix n32 compile.
These changes are needed to fix n32 compile after the recent change of mips n32 MACHINE_ARCH to mipsn32eb/mipsn32el. Reviewed by: imp, bz (earlier version)
-rw-r--r--gnu/lib/libgcc/Makefile4
-rw-r--r--gnu/lib/libgomp/Makefile2
-rw-r--r--gnu/usr.bin/binutils/Makefile.inc02
-rw-r--r--lib/libc/Makefile1
-rw-r--r--usr.sbin/Makefile.mips3
5 files changed, 7 insertions, 5 deletions
diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile
index 32f537e..7f6fc0d 100644
--- a/gnu/lib/libgcc/Makefile
+++ b/gnu/lib/libgcc/Makefile
@@ -121,8 +121,8 @@ LIB2FUNCS_EXTRA = floatunsidf.c floatunsisf.c
.if ${TARGET_CPUARCH} == mips
LIB2FUNCS_EXTRA = floatunsidf.c floatunsisf.c
-# XXX do we need n32 here?
-.if ${TARGET_ARCH:Mmips64*} != ""
+# ABIs other than o32 need this
+.if ${TARGET_ARCH:Mmipse[lb]} == ""
LIB2FUNCS_EXTRA+= floatdidf.c fixunsdfsi.c
LIB2FUNCS_EXTRA+= floatdisf.c floatundidf.c
LIB2FUNCS_EXTRA+= fixsfdi.c floatundisf.c
diff --git a/gnu/lib/libgomp/Makefile b/gnu/lib/libgomp/Makefile
index 8a863b8..011982b 100644
--- a/gnu/lib/libgomp/Makefile
+++ b/gnu/lib/libgomp/Makefile
@@ -25,7 +25,7 @@ VERSION_MAP= ${SRCDIR}/libgomp.map
# Target-specific OpenMP configuration
.if ${MACHINE_CPUARCH} == arm || ${MACHINE_CPUARCH} == i386 || \
${MACHINE_ARCH} == powerpc || \
- ${MACHINE_ARCH} == mipsel || ${MACHINE_ARCH} == mipseb
+ (${MACHINE_CPUARCH} == mips && ${MACHINE_ARCH:Mmips64*} == "")
OMP_LOCK_ALIGN = 4
OMP_LOCK_KIND= 4
OMP_LOCK_SIZE= 4
diff --git a/gnu/usr.bin/binutils/Makefile.inc0 b/gnu/usr.bin/binutils/Makefile.inc0
index 1dbbcf2..db11f1f 100644
--- a/gnu/usr.bin/binutils/Makefile.inc0
+++ b/gnu/usr.bin/binutils/Makefile.inc0
@@ -28,7 +28,7 @@ SRCDIR= ${.CURDIR}/${RELSRC}
.if ${TARGET_CPUARCH} == "arm" || ${TARGET_CPUARCH} == "i386" || \
${TARGET_ARCH} == "powerpc" || \
- ${TARGET_ARCH} == "mipsel" || ${TARGET_ARCH} == "mipseb"
+ (${TARGET_CPUARCH} == "mips" && ${TARGET_ARCH:Mmips64*} == "")
CFLAGS+= -DBFD_DEFAULT_TARGET_SIZE=32
.else
CFLAGS+= -DBFD_DEFAULT_TARGET_SIZE=64
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index dcb0943..4eb57de 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -68,6 +68,7 @@ NOASM=
${LIBC_ARCH} != "ia64" && \
${LIBC_ARCH} != "powerpc64" && \
${LIBC_ARCH} != "sparc64" && \
+ ${MACHINE_ARCH:Mmipsn32*} == "" && \
${MACHINE_ARCH:Mmips64*} == ""
.include "${.CURDIR}/quad/Makefile.inc"
.endif
diff --git a/usr.sbin/Makefile.mips b/usr.sbin/Makefile.mips
index 5b8fbd9..a946f3e 100644
--- a/usr.sbin/Makefile.mips
+++ b/usr.sbin/Makefile.mips
@@ -1,6 +1,7 @@
# $FreeBSD$
SUBDIR:= ${SUBDIR:Nsysinstall}
-.if ${MACHINE_ARCH:Mmips64*} != ""
+# uathload broken for n32 and n64 due to toolchain issues
+.if ${MACHINE_ARCH:Mmipse[lb]} == ""
SUBDIR:= ${SUBDIR:Nuathload}
.endif
OpenPOWER on IntegriCloud