diff options
Diffstat (limited to 'package/aircrack-ng/aircrack-ng.mk')
-rw-r--r-- | package/aircrack-ng/aircrack-ng.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/aircrack-ng/aircrack-ng.mk b/package/aircrack-ng/aircrack-ng.mk index c6574f1a5..a36cf3444 100644 --- a/package/aircrack-ng/aircrack-ng.mk +++ b/package/aircrack-ng/aircrack-ng.mk @@ -20,9 +20,12 @@ else AIRCRACK_NG_MAKE_OPTS = sqlite=false endif +AIRCRACK_NG_LDFLAGS = -lz \ + $(if $(BR2_PREFER_STATIC_LIB),-ldl -lpthread) + define AIRCRACK_NG_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(MAKE1) CC="$(TARGET_CC)" LD="$(TARGET_LD)" \ - LDFLAGS="$(TARGET_LDFLAGS) -lz" \ + LDFLAGS="$(AIRCRACK_NG_LDFLAGS)" \ -C $(@D) $(AIRCRACK_NG_MAKE_OPTS) all endef |