summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2013-08-12 13:50:09 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-08-13 08:19:04 (GMT)
commit1141d99aae9e1b139509ad71c969e6705417a48b (patch)
tree79429c8f437a286bac349dd8fe0e329b66ffd3f7
parentc1a6bcece5e5832cc8897b5b600dfb958cab88f0 (diff)
downloadbuildroot-1141d99aae9e1b139509ad71c969e6705417a48b.tar.gz
buildroot-1141d99aae9e1b139509ad71c969e6705417a48b.tar.bz2
aircrack-ng: fix static build
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>
-rw-r--r--package/aircrack-ng/aircrack-ng.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/aircrack-ng/aircrack-ng.mk b/package/aircrack-ng/aircrack-ng.mk
index fbefd74..00f4bac 100644
--- a/package/aircrack-ng/aircrack-ng.mk
+++ b/package/aircrack-ng/aircrack-ng.mk
@@ -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