--- /tmp/Makefile 2014-09-09 15:31:42.000000000 +1000 +++ /usr/ports/security/nmap/Makefile 2014-09-09 15:29:17.000000000 +1000 @@ -55,7 +55,7 @@ --without-nmap-update # fix for gcc from ports -.if ${CC} != "cc" && ${CC} !="clang" +.if ${CC} != "cc" && ${CC} !="clang" && ${CC} != "/usr/local/libexec/ccache/cc" GCCLIBDIR_CMDS= ${CC} -print-file-name=libstdc++.so | ${SED} -e 's/libstdc++.so//' CONFIGURE_ARGS+=LDFLAGS="-L$$(${GCCLIBDIR_CMDS})" NOT_BASE_CC= true