aircrack-ng: fix static build
authorSamuel Martin <s.martin49@gmail.com>
Mon, 12 Aug 2013 13:50:09 +0000 (15:50 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 13 Aug 2013 08:19:04 +0000 (10:19 +0200)
When static build and sqlite3 support are enabled together,
link flags needs to be defined in the right order.

Fixes http://autobuild.buildroot.org/results/a74/a74ced69052c1d0a91dbe32483fd0612d1bf24a

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/aircrack-ng/aircrack-ng.mk

index fbefd741ebe61ca18e61f599eafb3886be00e499..00f4bac436b79b67c784e3fb9d868f56538f6409 100644 (file)
@@ -13,7 +13,8 @@ AIRCRACK_NG_DEPENDENCIES = openssl
 
 ifeq ($(BR2_PACKAGE_SQLITE),y)
        AIRCRACK_NG_MAKE_OPTS = sqlite=true
-       AIRCRACK_NG_MAKE_OPTS += LIBSQL="-lsqlite3"
+       AIRCRACK_NG_MAKE_OPTS += \
+               LIBSQL="-lsqlite3$(if $(BR2_PREFER_STATIC_LIB), -ldl -lpthread)"
 
        AIRCRACK_NG_DEPENDENCIES += sqlite
 else