summaryrefslogtreecommitdiff
path: root/system/spl-solaris/spl-solaris.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/spl-solaris/spl-solaris.SlackBuild')
-rw-r--r--system/spl-solaris/spl-solaris.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/spl-solaris/spl-solaris.SlackBuild b/system/spl-solaris/spl-solaris.SlackBuild
index 913591745d..f5e8a3eb25 100644
--- a/system/spl-solaris/spl-solaris.SlackBuild
+++ b/system/spl-solaris/spl-solaris.SlackBuild
@@ -31,8 +31,8 @@ SRCNAM=spl
VERSION=${VERSION:-0.7.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-LINUXPATH=${LINUXPATH:-/usr/src/linux}
-KERN=$(cut -d '"' -f2 $LINUXPATH/include/generated/utsrelease.h | tr - _)
+
+KERN=${KERN:-"$(uname -r)"}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -85,8 +85,8 @@ CFLAGS="$SLKCFLAGS" \
--includedir=/usr/include \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --with-linux=$LINUXPATH \
- --with-linux-obj=$LINUXPATH \
+ --with-linux="/lib/modules/${KERN}/source" \
+ --with-linux-obj="/lib/modules/${KERN}/source" \
--build=$ARCH-slackware-linux
make