Replace custom strip command with INSTALL_MOD_STRIP=1

pull/447/head
Jan Houben 3 years ago
parent 97b7b4a980
commit 36970e65cd
No known key found for this signature in database
GPG Key ID: 22C69579E1123CE6
  1. 5
      src/zfs/PKGBUILD.sh

@ -30,9 +30,6 @@ build() {
--with-linux=/usr/lib/modules/\${_extramodules}/build \\
--with-linux-obj=/usr/lib/modules/\${_extramodules}/build
make
# strip debugging from module, needs to happen here since it is compressed afterwards
find . -name "*.ko" -print0 | xargs -0 strip --strip-debug
}
package_${zfs_pkgname}() {
@ -44,7 +41,7 @@ package_${zfs_pkgname}() {
${zfs_replaces}
cd "${zfs_workdir}"
make DESTDIR="\${pkgdir}" INSTALL_MOD_PATH=\${pkgdir}/usr install
make DESTDIR="\${pkgdir}" INSTALL_MOD_PATH=\${pkgdir}/usr INSTALL_MOD_STRIP=1 install
# Remove src dir
rm -r "\${pkgdir}"/usr/src

Loading…
Cancel
Save