summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2012-10-07 16:45:38 +0000
committermarcel <marcel@FreeBSD.org>2012-10-07 16:45:38 +0000
commit05fad1a84755885df7b8013ac913de71d25d9bf9 (patch)
treed90b896b8996cba57a64646700389b876c989820 /Makefile.inc1
parente721f7556169adf31e3b45611cedaa39dc4257ab (diff)
downloadFreeBSD-src-05fad1a84755885df7b8013ac913de71d25d9bf9.zip
FreeBSD-src-05fad1a84755885df7b8013ac913de71d25d9bf9.tar.gz
Fix 32-bit library builds after the removal of adding -E to make for AS,
CC, CXX and LD. This fix implements the intended as it should have been implemented all along: by passing AS, CC, CXX and LD on the commandline of the sub-make instead of in the environment of the sub-make. Breakage pointed-out by: dim@
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc128
1 files changed, 17 insertions, 11 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index a9b6088..85a7cf0 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -295,9 +295,10 @@ LIB32CPUFLAGS= -march=i686 -mmmx -msse -msse2
LIB32CPUFLAGS= -march=${TARGET_CPUTYPE}
.endif
LIB32WMAKEENV= MACHINE=i386 MACHINE_ARCH=i386 \
- MACHINE_CPU="i686 mmx sse sse2" \
- LD="${LD} -m elf_i386_fbsd -Y P,${LIB32TMP}/usr/lib32" \
- AS="${AS} --32"
+ MACHINE_CPU="i686 mmx sse sse2"
+LIB32WMAKEFLAGS= \
+ AS="${AS} --32" \
+ LD="${LD} -m elf_i386_fbsd -Y P,${LIB32TMP}/usr/lib32"
.elif ${TARGET_ARCH} == "powerpc64"
.if empty(TARGET_CPUTYPE)
@@ -305,7 +306,8 @@ LIB32CPUFLAGS= -mcpu=powerpc
.else
LIB32CPUFLAGS= -mcpu=${TARGET_CPUTYPE}
.endif
-LIB32WMAKEENV= MACHINE=powerpc MACHINE_ARCH=powerpc \
+LIB32WMAKEENV= MACHINE=powerpc MACHINE_ARCH=powerpc
+LIB32WMAKEFLAGS= \
LD="${LD} -m elf32ppc_fbsd"
.endif
@@ -322,16 +324,20 @@ LIB32WMAKEENV+= MAKEOBJDIRPREFIX=${OBJTREE}/lib32 \
VERSION="${VERSION}" \
INSTALL="sh ${.CURDIR}/tools/install.sh" \
PATH=${TMPPATH} \
- CC="${CC} ${LIB32FLAGS}" \
- CXX="${CXX} ${LIB32FLAGS}" \
LIBDIR=/usr/lib32 \
SHLIBDIR=/usr/lib32 \
COMPILER_TYPE=${WMAKE_COMPILER_TYPE}
-
-LIB32WMAKE= ${LIB32WMAKEENV} ${MAKE} -DNO_CPU_CFLAGS -DCOMPAT_32BIT \
- -DWITHOUT_BIND -DWITHOUT_MAN -DWITHOUT_INFO \
- -DWITHOUT_HTML -DNO_CTF -DNO_LINT \
- DESTDIR=${LIB32TMP}
+LIB32WMAKEFLAGS+= \
+ CC="${CC} ${LIB32FLAGS}" \
+ CXX="${CXX} ${LIB32FLAGS}" \
+ DESTDIR=${LIB32TMP} \
+ -DCOMPAT_32BIT \
+ -DNO_CPU_CFLAGS \
+ -DNO_CTF \
+ -DNO_LINT
+
+LIB32WMAKE= ${LIB32WMAKEENV} ${MAKE} ${LIB32WMAKEFLAGS} \
+ -DWITHOUT_BIND -DWITHOUT_MAN -DWITHOUT_INFO -DWITHOUT_HTML
LIB32IMAKE= ${LIB32WMAKE:NINSTALL=*:NDESTDIR=*:N_LDSCRIPTROOT=*} -DNO_INCS
.endif
OpenPOWER on IntegriCloud