linuxPackages.zfs: turn off pic hardening

This commit is contained in:
Robin Gloster 2016-02-09 23:35:35 +00:00
parent 332c84196c
commit f0e6c6ec0e

View File

@ -38,6 +38,8 @@ stdenv.mkDerivation rec {
# for zdb to get the rpath to libgcc_s, needed for pthread_cancel to work
NIX_CFLAGS_LINK = "-lgcc_s";
hardening_pic = false;
preConfigure = ''
substituteInPlace ./module/zfs/zfs_ctldir.c --replace "umount -t zfs" "${utillinux}/bin/umount -t zfs"
substituteInPlace ./module/zfs/zfs_ctldir.c --replace "mount -t zfs" "${utillinux}/bin/mount -t zfs"