From: Samuel Martin Date: Mon, 12 Aug 2013 13:50:09 +0000 (+0200) Subject: aircrack-ng: fix static build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1141d99aae9e1b139509ad71c969e6705417a48b;p=buildroot.git 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 --- 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