mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
sdl3: work around ld64 hardening issue
This commit is contained in:
parent
93c02ccb3a
commit
984fe3dd05
1 changed files with 9 additions and 1 deletions
|
|
@ -61,6 +61,9 @@
|
|||
vulkanSupport ? true,
|
||||
waylandSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
|
||||
x11Support ? !stdenv.hostPlatform.isAndroid && !stdenv.hostPlatform.isWindows,
|
||||
|
||||
# TODO: Clean up on `staging`.
|
||||
llvmPackages,
|
||||
}:
|
||||
|
||||
assert lib.assertMsg (
|
||||
|
|
@ -127,7 +130,8 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
ninja
|
||||
validatePkgConfig
|
||||
]
|
||||
++ lib.optional waylandSupport wayland-scanner;
|
||||
++ lib.optional waylandSupport wayland-scanner
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin llvmPackages.lld;
|
||||
|
||||
buildInputs =
|
||||
lib.optionals libusbSupport [
|
||||
|
|
@ -207,6 +211,10 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
&& !(stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isAndroid)
|
||||
&& !(x11Support || waylandSupport)
|
||||
))
|
||||
]
|
||||
# TODO: Clean up on `staging`
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
(lib.cmakeFeature "CMAKE_LINKER_TYPE" "LLD")
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue