Commit 1141d99a authored by Samuel Martin's avatar Samuel Martin Committed by Thomas Petazzoni
Browse files

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: default avatarSamuel Martin <s.martin49@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent c1a6bcec
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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