aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-09-26 02:55:33 +0300
committerCem Keylan <cem@ckyln.com>2021-09-26 02:55:33 +0300
commit15a05fab24bab57994c11b365402d10ad54cb52e (patch)
tree19e94295e2eec5f17c94087bb5142f3673755eb5
parent23d982699285717efe87ca05144c5d3fd9f912c9 (diff)
downloadrepository-15a05fab24bab57994c11b365402d10ad54cb52e.tar.gz
iw: use libnl-tiny
-rwxr-xr-xextra/iw/build14
-rw-r--r--extra/iw/depends2
2 files changed, 12 insertions, 4 deletions
diff --git a/extra/iw/build b/extra/iw/build
index 58b5126a..47a95927 100755
--- a/extra/iw/build
+++ b/extra/iw/build
@@ -2,6 +2,14 @@
# iw manpage is extremely small,
# we don't need to compress it.
-sed 's@\(iw\.8\)\.gz@\1@' Makefile > _
-cat _ > Makefile; rm -f _
-make DESTDIR="$1" LDFLAGS="$LDFLAGS -static" PREFIX="/usr" SBINDIR="/usr/bin" install
+clsed 's@\(iw\.8\)\.gz@\1@' Makefile
+
+make \
+ DESTDIR="$1" \
+ LDFLAGS="$LDFLAGS -static" \
+ CFLAGS="$CFLAGS -I/usr/include/libnl-tiny -DCONFIG_LIBNL20 -D_GNU_SOURCE" \
+ NL1FOUND="" NL2FOUND=Y NLLIBNAME=libnl-tiny \
+ LIBS=-lnl-tiny \
+ PREFIX="/usr" \
+ SBINDIR="/usr/bin" \
+ install
diff --git a/extra/iw/depends b/extra/iw/depends
index 58bd7032..8adba4b6 100644
--- a/extra/iw/depends
+++ b/extra/iw/depends
@@ -1 +1 @@
-libnl make
+libnl-tiny make