Loading pkgs/by-name/ld/ldb/package.nix +12 −9 Original line number Diff line number Diff line Loading @@ -74,15 +74,18 @@ stdenv.mkDerivation (finalAttrs: { "--cross-execute=${stdenv.hostPlatform.emulator buildPackages}" ]; env = { # python-config from build Python gives incorrect values when cross-compiling. # If python-config is not found, the build falls back to using the sysconfig # module, which works correctly in all cases. PYTHON_CONFIG = "/invalid"; } // lib.optionalAttrs (stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17") { # https://reviews.llvm.org/D135402 NIX_LDFLAGS = lib.optional ( stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17" ) "--undefined-version"; NIX_LDFLAGS = "--undefined-version"; }; stripDebugList = [ "bin" Loading Loading
pkgs/by-name/ld/ldb/package.nix +12 −9 Original line number Diff line number Diff line Loading @@ -74,15 +74,18 @@ stdenv.mkDerivation (finalAttrs: { "--cross-execute=${stdenv.hostPlatform.emulator buildPackages}" ]; env = { # python-config from build Python gives incorrect values when cross-compiling. # If python-config is not found, the build falls back to using the sysconfig # module, which works correctly in all cases. PYTHON_CONFIG = "/invalid"; } // lib.optionalAttrs (stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17") { # https://reviews.llvm.org/D135402 NIX_LDFLAGS = lib.optional ( stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17" ) "--undefined-version"; NIX_LDFLAGS = "--undefined-version"; }; stripDebugList = [ "bin" Loading