aircrack-ng: fix statically linked build
authorSamuel Martin <s.martin49@gmail.com>
Tue, 14 May 2013 22:26:50 +0000 (22:26 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 15 May 2013 13:00:26 +0000 (15:00 +0200)
Fixe the build failure visible at
http://autobuild.buildroot.net/results/2441d8b62323a00f32f2edb7cb781dda71ff7f68

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/aircrack-ng/aircrack-ng.mk

index c6574f1a55348c5ad9045624ae6e7c432c996042..a36cf3444e41529699e34d08a9ca8a5af2f3eae4 100644 (file)
@@ -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