match libc, instead of useAndroidPrebuilt

Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
Dylan Green 2022-09-23 14:07:04 -05:00 committed by GitHub
parent 2b6bf950e7
commit 2870a5e506
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ]
# https://android.googlesource.com/platform/bionic/+/1342527b5791a53bf441322ab9adf41c8e060a1e%5E2..1342527b5791a53bf441322ab9adf41c8e060a1e/
++ optional (stdenv.hostPlatform.useAndroidPrebuilt or false) "fortify";
++ optional (stdenv.hostPlatform.libc == "bionic") "fortify";
outputs = [ "out" "dev" "man" "doc" "info" ];