mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
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
This commit is contained in:
parent
16945d8950
commit
5ab58881db
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280719
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue