ukmm: simplify link flags with NIX_LDFLAGS

This commit is contained in:
Kira Bruneau
2025-03-06 14:08:37 -05:00
parent 02032da4af
commit af29d35b02
+4 -3
View File
@@ -48,12 +48,13 @@ rustPlatform.buildRustPackage rec {
# Force linking to libEGL, which is always dlopen()ed, and to
# libwayland-client & libxkbcommon, which is dlopen()ed based on the
# winit backend.
RUSTFLAGS = map (a: "-C link-arg=${a}") [
"-Wl,--push-state,--no-as-needed"
NIX_LDFLAGS = [
"--push-state"
"--no-as-needed"
"-lEGL"
"-lwayland-client"
"-lxkbcommon"
"-Wl,--pop-state"
"--pop-state"
];
cargoTestFlags = [