aircrack-ng: don't use -ldl in a static lib configuration
This commit gets rid of the -ldl flag used when BR2_PREFER_STATIC_LIB=y. First because it does not make sense: when you use a pure static library configuration, you don't have shared library support, so you don't have libdl. The occurences of -ldl were added in commit1141d99aae
("aircrack-ng: fix static build") and commitbed1490d0f
("aircrack-ng: fix statically linked build"), at a time were sqlite indeed was linked against libdl even in static library configurations. But this is no longer the case sincebd56cd6b4c
("sqlite: Disable dynamic extention if static library is seleted"). This means we can now get rid of the -ldl flag when building aircrack-ng, which means it can build properly in a pure static library configuration. Fixes: http://autobuild.buildroot.org/results/bfd/bfd1ca4afdd32e3cc251aab7ee2ae5e5293ced1c/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
c3d9cd9b52
commit
68e8a10f97
@ -13,7 +13,7 @@ AIRCRACK_NG_DEPENDENCIES = openssl
|
||||
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
||||
AIRCRACK_NG_MAKE_OPTS = sqlite=true
|
||||
AIRCRACK_NG_MAKE_OPTS += \
|
||||
LIBSQL="-lsqlite3$(if $(BR2_PREFER_STATIC_LIB), -ldl -lpthread)"
|
||||
LIBSQL="-lsqlite3$(if $(BR2_PREFER_STATIC_LIB),-lpthread)"
|
||||
|
||||
AIRCRACK_NG_DEPENDENCIES += sqlite
|
||||
else
|
||||
@ -21,7 +21,7 @@ else
|
||||
endif
|
||||
|
||||
AIRCRACK_NG_LDFLAGS = $(TARGET_LDFLAGS) -lz \
|
||||
$(if $(BR2_PREFER_STATIC_LIB),-ldl -lpthread)
|
||||
$(if $(BR2_PREFER_STATIC_LIB),-lpthread)
|
||||
|
||||
define AIRCRACK_NG_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE1) CC="$(TARGET_CC)" LD="$(TARGET_LD)" \
|
||||
|
Loading…
Reference in New Issue
Block a user