Skip to content

Instantly share code, notes, and snippets.

@neheb
Created December 8, 2018 22:58
Show Gist options
  • Save neheb/5f4ddcfa370952808dca4842f5bd3dc5 to your computer and use it in GitHub Desktop.
Save neheb/5f4ddcfa370952808dca4842f5bd3dc5 to your computer and use it in GitHub Desktop.
--- a/net/aircrack-ng/Makefile
+++ b/net/aircrack-ng/Makefile
@@ -33,6 +33,7 @@ PKG_CONFIG_DEPENDS:= \
CONFIG_AIRCRACK_NG_HWLOC \
CONFIG_AIRCRACK_NG_SQLITE3
+include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
define Package/aircrack-ng
@@ -91,7 +92,6 @@ ifeq ($(CONFIG_AIRCRACK_NG_OPTIMIZE_SPEED),y)
endif
TARGET_LDFLAGS+= \
- -static-libstdc++ \
-Wl,--gc-sections
define Package/aircrack-ng/install
@neheb
Copy link
Author

neheb commented Dec 11, 2018

No need for that depends. uclibc++.mk handles it.

@neheb
Copy link
Author

neheb commented Dec 16, 2018

Actually the depends needs to be switched to $(CXX_DEPENDS). OpenWrt allows to select between libstdcpp and uclibc++ globally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment