glfw3: work around ld64 hardening issue

This commit is contained in:
Emily
2026-07-03 16:53:14 +01:00
parent 2c0e8d977a
commit 3b114d3460
+11 -1
View File
@@ -20,6 +20,9 @@
libxkbcommon,
libdecor,
withMinecraftPatch ? false,
# TODO: Clean up on `staging`.
llvmPackages,
}:
let
version = "3.4";
@@ -58,7 +61,11 @@ stdenv.mkDerivation {
cmake
pkg-config
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
fixDarwinDylibNames
# TODO: Clean up on `staging`.
llvmPackages.lld
]
++ lib.optionals stdenv.hostPlatform.isLinux [ wayland-scanner ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
@@ -86,6 +93,9 @@ stdenv.mkDerivation {
cmakeFlags = [
# Static linking isn't supported
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
(lib.cmakeFeature "CMAKE_LINKER_TYPE" "LLD")
];
env = lib.optionalAttrs (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isWindows) {