Skip to contentSkip to conversation

aircrack-ng: fix static build

PATCH New Samuel Martin 2 participants 2 messages Aug 12, 2013 – Aug 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 package/aircrack-ng/aircrack-ng.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/aircrack-ng/aircrack-ng.mk +2 -1
index fbefd74..00f4bac 100644
@@ -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
Signature · 1 line
1.8.3.4
#1 lore raw

PATCH 1/1 aircrack-ng: fix static build

Dear Samuel Martin,

Quoted 9 lines · Samuel Martin

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

---
 package/aircrack-ng/aircrack-ng.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied, thanks.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com