diff options
author | ohauer <ohauer@FreeBSD.org> | 2014-12-25 21:29:28 +0800 |
---|---|---|
committer | ohauer <ohauer@FreeBSD.org> | 2014-12-25 21:29:28 +0800 |
commit | 0c51a0b7f2a81edcedc8d4e3706a57f82d209c58 (patch) | |
tree | f093963522496142bd31442dbbde2a3d83acfb9c | |
parent | a23d9b1a66fcc02f5555bc28a67bb8f2cdf9d15c (diff) | |
download | freebsd-ports-gnome-0c51a0b7f2a81edcedc8d4e3706a57f82d209c58.tar.gz freebsd-ports-gnome-0c51a0b7f2a81edcedc8d4e3706a57f82d209c58.tar.zst freebsd-ports-gnome-0c51a0b7f2a81edcedc8d4e3706a57f82d209c58.zip |
- fix build on arm/mips
PR: 196065
Submitted by: mikael.urankar
-rw-r--r-- | security/nmap/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/security/nmap/Makefile b/security/nmap/Makefile index 00c06ff984f2..d1483cae3c36 100644 --- a/security/nmap/Makefile +++ b/security/nmap/Makefile @@ -19,7 +19,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre -USES= tar:bzip2 gmake cpe +USES= tar:bzip2 gmake cpe compiler GNU_CONFIGURE= yes OPTIONS_SUB= yes @@ -54,8 +54,10 @@ CONFIGURE_ARGS+=--without-localdirs \ --with-liblua=included \ --without-nmap-update +.include <bsd.port.pre.mk> + # fix for gcc from ports -.if ${CC} != "cc" && ${CC} !="clang" && !${CC:M*ccache/cc} +.if ${CHOSEN_COMPILER_TYPE} == gcc GCCLIBDIR_CMDS= ${CC} -print-file-name=libstdc++.so | ${SED} -e 's/libstdc++.so//' CONFIGURE_ARGS+=LDFLAGS="-L$$(${GCCLIBDIR_CMDS})" NOT_BASE_CC= true @@ -81,4 +83,4 @@ post-install: @${ECHO_MSG} do not forget to adjust libnmap.conf .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |