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>
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