summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2013-05-21 16:58:23 +0000
committerbrooks <brooks@FreeBSD.org>2013-05-21 16:58:23 +0000
commit6443ec0dc91014e94ae09bb7902de5677f340a81 (patch)
treec1032b52825a4d0786de29ab0a2b431305a5da0d /Makefile.inc1
parent3fb878f21703be90472084ea82e8c78c7690dc0d (diff)
downloadFreeBSD-src-6443ec0dc91014e94ae09bb7902de5677f340a81.zip
FreeBSD-src-6443ec0dc91014e94ae09bb7902de5677f340a81.tar.gz
Restore the ability to build on systems with 32-bit compat when
the system compiler is not clang. clang and gcc appear to differ signficantly in their interpretation of -isystem and --sysroot. Further work is likely required to support an external gcc. Reported by: andreast, fidaj@ukr.net, sergey.dyatko@gmail.com
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc14
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 33feadb..1e58f47 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -366,10 +366,12 @@ LIB32WMAKEFLAGS= \
LIB32FLAGS= -m32 ${LIB32CPUFLAGS} -DCOMPAT_32BIT \
- --sysroot=${WORLDTMP} \
-isystem ${LIB32TMP}/usr/include/ \
-L${LIB32TMP}/usr/lib32 \
-B${LIB32TMP}/usr/lib32
+.if ${XCC:M/*}
+LIB32FLAGS+= --sysroot=${WORLDTMP}
+.endif
# Yes, the flags are redundant.
LIB32WMAKEENV+= MAKEOBJDIRPREFIX=${OBJTREE}/lib32 \
OpenPOWER on IntegriCloud