wpa_supplicant: Link statically to libnl-tiny

This commit is contained in:
Dylan Araps 2020-02-24 17:04:00 +02:00
parent 8ddbcb76e4
commit 78d2b73195
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
6 changed files with 18 additions and 6 deletions

View File

@ -1,6 +1,16 @@
#!/bin/sh -e
# The wpa_supplicant package is built statically using
# libnl-tiny which is a minimal version of libnl maintained
# by OpenWRT.
make ALL_LIBS=libnl-tiny.a -C libnl
# The CFLAGS must be set to link to the above locally built
# libnl-tiny library.
export CFLAGS="$CFLAGS -I$PWD/libnl/include -L$PWD/libnl -lnl-tiny"
export CFLAGS="$CFLAGS -static -D_GNU_SOURCE -DLIBNL1_COMPAT"
cd wpa_supplicant
make LIBDIR=/usr/lib BINDIR=/usr/bin
make LIBDIR=/usr/lib BINDIR=/usr/bin DRV_LIBS="$CFLAGS"
make LIBDIR=/usr/lib BINDIR=/usr/bin DESTDIR="$1" install

View File

@ -1,2 +1,3 @@
fcbdee7b4a64bea8177973299c8c824419c413ec2e3a95db63dd6a5dc3541f17 wpa_supplicant-2.9.tar.gz
6a753cde8110f38580ed8e73a50b344c9249aabcef9f1fc689900e9f0c424640 .config
d2b57597b234c84b113e7640064c3273616c0bf086ad223d71f49aaea086ad59 4225e93bec5304abee3386213213718367e54a93.tar.gz
ea81361a44cede64fb42309e783f26ca1d0a4f6677a21550aad925b25405eeb0 .config

View File

@ -1,3 +1,2 @@
libnl
libressl
pkgconf make

View File

@ -41,10 +41,11 @@ CONFIG_DRIVER_NL80211=y
#LIBS += -L$<path to libnl library files>
# Use libnl v2.0 (or 3.0) libraries.
#CONFIG_LIBNL20=y
CONFIG_LIBNL20=y
CONFIG_LIBNL_TINY=y
# Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored)
CONFIG_LIBNL32=y
#CONFIG_LIBNL32 is not set
# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)

View File

@ -1,2 +1,3 @@
https://w1.fi/releases/wpa_supplicant-2.9.tar.gz
https://github.com/sabotage-linux/libnl-tiny/archive/4225e93bec5304abee3386213213718367e54a93.tar.gz libnl
files/.config wpa_supplicant/

View File

@ -1 +1 @@
2.9 2
2.9 3