talloc: fix pkgsLLVM build

This commit is contained in:
Robert Scott
2025-02-23 17:27:55 -07:00
committed by Audrey Dutcher
parent e0c11cd5d0
commit e872faaec2
+5
View File
@@ -67,6 +67,11 @@ stdenv.mkDerivation rec {
# module, which works correctly in all cases.
PYTHON_CONFIG = "/invalid";
# https://reviews.llvm.org/D135402
NIX_LDFLAGS = lib.optional (
stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17"
) "--undefined-version";
# this must not be exported before the ConfigurePhase otherwise waf whines
preBuild = lib.optionalString stdenv.hostPlatform.isMusl ''
export NIX_CFLAGS_LINK="-no-pie -shared";