libelf: prevent massive re-build

Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
Dylan Green 2022-09-29 08:49:22 -05:00 committed by GitHub
parent df3298f2ef
commit 792988c35e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
doCheck = true;
preConfigure = lib.optionalString (stdenv.hostPlatform.useAndroidPrebuilt) ''
preConfigure = if !stdenv.hostPlatform.useAndroidPrebuilt then null else ''
sed -i 's|DISTSUBDIRS = lib po|DISTSUBDIRS = lib|g' Makefile.in
sed -i 's|SUBDIRS = lib @POSUB@|SUBDIRS = lib|g' Makefile.in
'';