diff options
-rw-r--r-- | Mk/bsd.port.mk | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index aeed0df47938..87fecab5e802 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1138,17 +1138,15 @@ IGNORE= Cross building is only compatible with stagified ports .endif BUILD_DEPENDS= ${X_BUILD_FOR}-cc:${PORTSDIR}/devel/${X_BUILD_FOR}-xdev # Do not define CPP on purpose -CC= ${X_BUILD_FOR}-cc -CXX= ${X_BUILD_FOR}-c++ -LD= ${X_BUILD_FOR}-ld -AS= ${X_BUILD_FOR}-as +.if !defined(HCC) +HCC:= ${CC} +HCXX:= ${CXX} +.endif +CC= ${LOCALBASE}/${X_BUILD_FOR}/usr/bin/cc +CXX= ${LOCALBASE}/${X_BUILD_FOR}/usr/bin/c++ NM= ${X_BUILD_FOR}-nm STRIP_CMD= ${X_BUILD_FOR}-strip -CFLAGS+= -B${LOCALBASE}/${X_BUILD_FOR}/usr/bin -CXXFLAGS+= -B${LOCALBASE}/${X_BUILD_FOR}/usr/bin -LDFLAGS+= -B${LOCALBASE}/${X_BUILD_FOR}/usr/bin -CONFIGURE_ENV+= LD=${LD} AS=${AS} NM=${NM} -MAKE_ENV+= LD=${LD} AS=${AS} NM=${NM} STRIPBIN=${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 .endif |