export LINUX_VERSION=4.10.0-41-generic
 export LINUX_PATH=/usr/src/linux-headers-$LINUX_VERSION

SPL

cd spl

make clean

git pull

./autogen.sh

./configure --prefix=/usr --disable-static --with-gnu-ld --with-linux=$LINUX_PATH --with-linux-obj=$LINUX_PATH --libexecdir=/usr/lib/zfs-linux --bindir=/bin --sbindir=/sbin --localstatedir=/var --runstatedir=/run --sysconfdir=/etc --with-config=kernel

make -j$(nproc)

sudo make install

ZFS

cd ../zfs

make clean

git pull

./autogen.sh

./configure --prefix=/usr --disable-static --with-gnu-ld --with-linux=$LINUX_PATH --with-linux-obj=$LINUX_PATH --libexecdir=/usr/lib/zfs-linux --bindir=/bin --sbindir=/sbin --localstatedir=/var --runstatedir=/run --sysconfdir=/etc --with-config=kernel

make -j$(nproc)

sudo make install