diff options
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 2f666ebfd5da..2297ffcb41cb 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1155,12 +1155,18 @@ BUILD_DEPENDS= ${X_BUILD_FOR}-cc:${PORTSDIR}/devel/${X_BUILD_FOR}-xdev HCC:= ${CC} HCXX:= ${CXX} .endif +.if !exists(/usr/${X_BUILD_FOR}/usr/bin/cc) CC= ${LOCALBASE}/${X_BUILD_FOR}/usr/bin/cc CXX= ${LOCALBASE}/${X_BUILD_FOR}/usr/bin/c++ +PKG_ENV+= ABI_FILE=${LOCALBASE}/${X_BUILD_FOR}/usr/lib/crt1.o +.else +CC= /usr/${X_BUILD_FOR}/usr/bin/cc +CXX= /usr/${X_BUILD_FOR}/usr/bin/c++ +PKG_ENV+= ABI_FILE=/usr/${X_BUILD_FOR}/usr/lib/crt1.o +.endif NM= ${X_BUILD_FOR}-nm STRIP_CMD= ${X_BUILD_FOR}-strip MAKE_ENV+= NM=${NM} STRIPBIN=${X_BUILD_FOR}-strip -PKG_ENV+= ABI_FILE=${LOCALBASE}/${X_BUILD_FOR}/usr/lib/crt1.o # only bmake support the below STRIPBIN= ${STRIP_CMD} .export.env STRIPBIN |