git: fix pkgsStatic build

This commit is contained in:
Thomas Gerbet 2021-06-03 12:04:26 +02:00 committed by Thomas Gerbet
parent 6d0f8c8015
commit fc1c4bab77

View File

@ -78,7 +78,7 @@ stdenv.mkDerivation {
++ lib.optionals withLibsecret [ pkg-config glib libsecret ];
# required to support pthread_cancel()
NIX_LDFLAGS = lib.optionalString (!stdenv.cc.isClang) "-lgcc_s"
NIX_LDFLAGS = lib.optionalString (stdenv.cc.isGNU && stdenv.hostPlatform.libc == "glibc") "-lgcc_s"
+ lib.optionalString (stdenv.isFreeBSD) "-lthr";
configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [