diff --git a/devel/libtool/Makefile b/devel/libtool/Makefile index 5121661dc23c..338a975d2990 100644 --- a/devel/libtool/Makefile +++ b/devel/libtool/Makefile @@ -1,22 +1,29 @@ PORTNAME= libtool PORTREVISION= 0 COMMENT= Generic shared library support script WWW= https://www.gnu.org/software/libtool/ .include "${.CURDIR}/../libtool/Makefile.common" LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= gm4:devel/m4 RUN_DEPENDS= gm4:devel/m4 GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-ltdl-install TEST_TARGET= check NO_ARCH= yes INFO= libtool +.if "${CC}" == "/nxb-bin/usr/bin/cc" +# Generate libtool script for the native compiler, not the cross compiler. +CC= cc +CXX= c++ +LD= ld +.endif + .include