From 1141d99aae9e1b139509ad71c969e6705417a48b Mon Sep 17 00:00:00 2001 From: Samuel Martin Date: Mon, 12 Aug 2013 15:50:09 +0200 Subject: [PATCH] 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 Signed-off-by: Thomas Petazzoni --- package/aircrack-ng/aircrack-ng.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/aircrack-ng/aircrack-ng.mk b/package/aircrack-ng/aircrack-ng.mk index fbefd741eb..00f4bac436 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 -- 2.30.2