summaryrefslogtreecommitdiff
path: root/network/wireguard-linux-compat
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2020-01-11 21:47:51 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-18 12:25:01 +0700
commitbee58522a1186e2e97036561207832c894c43a4a (patch)
treecd7d2cd9a116f17aac11b4cd31b252eb29403c28 /network/wireguard-linux-compat
parent2bc3e414d8223716a3b940be5847eb0c74004815 (diff)
downloadslackbuilds-bee58522a1186e2e97036561207832c894c43a4a.tar.gz
network/wireguard-linux-compat: Fixed build for non-running kernel
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/wireguard-linux-compat')
-rw-r--r--network/wireguard-linux-compat/wireguard-linux-compat.SlackBuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/network/wireguard-linux-compat/wireguard-linux-compat.SlackBuild b/network/wireguard-linux-compat/wireguard-linux-compat.SlackBuild
index 83e76913c9..5af60882e8 100644
--- a/network/wireguard-linux-compat/wireguard-linux-compat.SlackBuild
+++ b/network/wireguard-linux-compat/wireguard-linux-compat.SlackBuild
@@ -77,8 +77,10 @@ find -L . \
# Instead depmod will run as part of doinst.sh
cd src
- env -u ARCH CFLAGS="$SLKCFLAGS" make
+ env -u ARCH CFLAGS="$SLKCFLAGS" make \
+ KERNELRELEASE="$KERNEL"
env -u ARCH make install \
+ KERNELRELEASE="$KERNEL" \
DESTDIR=$PKG \
INSTALL_MOD_PATH=$PKG \
DEPMOD="true"