diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2015-03-26 23:37:03 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2015-03-26 23:37:03 +0000 |
commit | 6f7c80a08a919f9b6feebfa45a0ea342809fcc41 (patch) | |
tree | 0b9ac137b53678ca155dbb9b28ddcb7437ebcd74 /Makefile.inc1 | |
parent | 09f4dc6853dd38fade40afabb9ff0768c41a7e4b (diff) | |
download | FreeBSD-src-6f7c80a08a919f9b6feebfa45a0ea342809fcc41.zip FreeBSD-src-6f7c80a08a919f9b6feebfa45a0ea342809fcc41.tar.gz |
Add --sysroot to the compiler flags for clang or gcc external toolchains
Before this fix, --sysroot was only added to the compiler flags if a clang
external toolchain was used.
Reviewed by: imp
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 39bbc62..ada97bc 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -384,9 +384,9 @@ DEPFLAGS+= -I${WORLDTMP}/usr/include/c++/v1 TARGET_ABI?= unknown TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/}-${TARGET_ABI}-freebsd11.0 XCFLAGS+= -target ${TARGET_TRIPLE} +.endif XCFLAGS+= --sysroot=${WORLDTMP} ${BFLAGS} XCXXFLAGS+= --sysroot=${WORLDTMP} ${BFLAGS} -.endif .else .if defined(CROSS_BINUTILS_PREFIX) && exists(${CROSS_BINUTILS_PREFIX}) BFLAGS+= -B${CROSS_BINUTILS_PREFIX} |