hardinfo: fix not finding libc

This commit is contained in:
Christoph Neidahl 2019-03-16 15:55:24 +01:00 committed by Bjørn Forsman
parent e98e4d21fa
commit 4708d3f84b

View File

@ -30,6 +30,7 @@ stdenv.mkDerivation rec {
sed -i -e "s/^CFLAGS = \(.*\)/CFLAGS = \1 -std=gnu89/" Makefile.in
substituteInPlace ./arch/linux/common/modules.h --replace /sbin/modinfo modinfo
substituteInPlace ./arch/linux/common/os.h --replace /lib/libc.so.6 ${stdenv.glibc.out}/lib/libc.so.6
'';
# Makefile supports DESTDIR but not PREFIX (it hardcodes $DESTDIR/usr/).