tzdata: use nativePrefix for zic-native

would not be able to run the install phase for a cross compile otherwise
This commit is contained in:
Alexander Vieth 2021-02-22 19:59:06 -05:00
parent 013b2ccdb0
commit a65208ca8e

View File

@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
preInstall = '' preInstall = ''
mv zic.o zic.o.orig mv zic.o zic.o.orig
mv zic zic.orig mv zic zic.orig
make $makeFlags cc=${stdenv.cc.targetPrefix}cc AR=${stdenv.cc.targetPrefix}ar zic make $makeFlags cc=${stdenv.cc.nativePrefix}cc AR=${stdenv.cc.nativePrefix}ar zic
mv zic zic-native mv zic zic-native
mv zic.o.orig zic.o mv zic.o.orig zic.o
mv zic.orig zic mv zic.orig zic