Commit af29d35b authored by Kira Bruneau's avatar Kira Bruneau
Browse files

ukmm: simplify link flags with NIX_LDFLAGS

parent 02032da4
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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 = [