X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/77b42e9485f5fc6da2fa3c08b55b66472cdb4fa1..f59578a083f9ac8746da5fe0910677756b118df8:/package/nmap/Makefile diff --git a/package/nmap/Makefile b/package/nmap/Makefile index 1aa8bed4c..23997b88f 100644 --- a/package/nmap/Makefile +++ b/package/nmap/Makefile @@ -26,7 +26,7 @@ $(PKG_BUILD_DIR)/.configured: CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \ CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ - LIBS="-luClibc++ -lc -lm" \ + LIBS="-luClibc++ -lc -lm -lgcc" \ ac_cv_prog_CXX="$(TARGET_CXX)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ @@ -67,10 +67,10 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_NMAP): install -d -m0755 $(IDIR_NMAP)/usr/share/nmap for file in mac-prefixes os-fingerprints protocols rpc service-probes services; do \ - cp -fpR $(PKG_INSTALL_DIR)/usr/share/nmap/nmap-$$file $(IDIR_NMAP)/usr/share/nmap; \ + $(CP) $(PKG_INSTALL_DIR)/usr/share/nmap/nmap-$$file $(IDIR_NMAP)/usr/share/nmap; \ done install -d -m0755 $(IDIR_NMAP)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/nmap $(IDIR_NMAP)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/nmap $(IDIR_NMAP)/usr/bin/ $(RSTRIP) $(IDIR_NMAP) $(IPKG_BUILD) $(IDIR_NMAP) $(PACKAGE_DIR)