Fix detection for binutils bootstrap package.
The path was changed recently in the port to be the full target triple. MFC after: 2 weeks Sponsored by: Dell EMC
This commit is contained in:
parent
39ee8ca1a1
commit
54c94eed7e
@ -202,7 +202,7 @@ CROSS_BINUTILS_PREFIX?=${CROSS_TOOLCHAIN_PREFIX}
|
|||||||
.if !empty(BROKEN_OPTIONS:MBINUTILS_BOOTSTRAP) && \
|
.if !empty(BROKEN_OPTIONS:MBINUTILS_BOOTSTRAP) && \
|
||||||
${MK_LLD_BOOTSTRAP} == "no" && \
|
${MK_LLD_BOOTSTRAP} == "no" && \
|
||||||
!defined(CROSS_BINUTILS_PREFIX)
|
!defined(CROSS_BINUTILS_PREFIX)
|
||||||
CROSS_BINUTILS_PREFIX=/usr/local/${TARGET_ARCH}-freebsd/bin/
|
CROSS_BINUTILS_PREFIX=/usr/local/${TARGET_TRIPLE}/bin/
|
||||||
.if !exists(${CROSS_BINUTILS_PREFIX})
|
.if !exists(${CROSS_BINUTILS_PREFIX})
|
||||||
.error In-tree binutils does not support the ${TARGET_ARCH} architecture. Install the ${TARGET_ARCH}-binutils port or package or set CROSS_BINUTILS_PREFIX.
|
.error In-tree binutils does not support the ${TARGET_ARCH} architecture. Install the ${TARGET_ARCH}-binutils port or package or set CROSS_BINUTILS_PREFIX.
|
||||||
.endif
|
.endif
|
||||||
@ -641,6 +641,10 @@ TARGET_ABI= gnueabihf
|
|||||||
TARGET_ABI= gnueabi
|
TARGET_ABI= gnueabi
|
||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
MACHINE_ABI?= unknown
|
||||||
|
MACHINE_TRIPLE?=${MACHINE_ARCH:S/amd64/x86_64/:C/hf$//:S/mipsn32/mips64/}-${MACHINE_ABI}-freebsd12.0
|
||||||
|
TARGET_ABI?= unknown
|
||||||
|
TARGET_TRIPLE?= ${TARGET_ARCH:S/amd64/x86_64/:C/hf$//:S/mipsn32/mips64/}-${TARGET_ABI}-freebsd12.0
|
||||||
.if ${WANT_COMPILER_TYPE} == gcc || \
|
.if ${WANT_COMPILER_TYPE} == gcc || \
|
||||||
(defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == gcc)
|
(defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == gcc)
|
||||||
# GCC requires -isystem and -L when using a cross-compiler. --sysroot
|
# GCC requires -isystem and -L when using a cross-compiler. --sysroot
|
||||||
@ -658,10 +662,6 @@ XCXXFLAGS+= -isystem ${WORLDTMP}/usr/include/c++/v1 -std=c++11 \
|
|||||||
.endif
|
.endif
|
||||||
.elif ${WANT_COMPILER_TYPE} == clang || \
|
.elif ${WANT_COMPILER_TYPE} == clang || \
|
||||||
(defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == clang)
|
(defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == clang)
|
||||||
MACHINE_ABI?= unknown
|
|
||||||
MACHINE_TRIPLE?=${MACHINE_ARCH:S/amd64/x86_64/:C/hf$//:S/mipsn32/mips64/}-${MACHINE_ABI}-freebsd12.0
|
|
||||||
TARGET_ABI?= unknown
|
|
||||||
TARGET_TRIPLE?= ${TARGET_ARCH:S/amd64/x86_64/:C/hf$//:S/mipsn32/mips64/}-${TARGET_ABI}-freebsd12.0
|
|
||||||
XCFLAGS+= -target ${TARGET_TRIPLE}
|
XCFLAGS+= -target ${TARGET_TRIPLE}
|
||||||
.endif
|
.endif
|
||||||
XCFLAGS+= --sysroot=${WORLDTMP}
|
XCFLAGS+= --sysroot=${WORLDTMP}
|
||||||
|
Loading…
Reference in New Issue
Block a user