diff --git a/net-mgmt/netams/Makefile b/net-mgmt/netams/Makefile index 8f206cbe6088..d9460b88e0eb 100644 --- a/net-mgmt/netams/Makefile +++ b/net-mgmt/netams/Makefile @@ -60,6 +60,11 @@ post-patch: @${REINPLACE_CMD} -e 's|#DEFINE += -DUSE_HASH|DEFINE += -DUSE_HASH|' \ ${WRKSRC}/configure.sh .endif + @${REINPLACE_CMD} -e 's|^CC.*|CC=${CXX}|; s|^CPP.*|CPP=${CXX}|' \ + ${WRKSRC}/src/Makefile + @${REINPLACE_CMD} -e 's|^CC.*|CC=${CC}|; s|^CPP.*|CPP=${CXX}|' \ + ${WRKSRC}/lib/Makefile \ + ${WRKSRC}/lib/libipulog/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/netams ${PREFIX}/libexec/netams