Unverified Commit 92c03327 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

yaup: fix broken darwin build (#460081)

parents 4cc4fcdf 3868dfa3
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -30,6 +30,12 @@ stdenv.mkDerivation {
    })
  ];

  postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
    # Replace GNU ld's --export-dynamic with macOS linker equivalent
    substituteInPlace src/Makefile.in \
      --replace-fail '-Wl,--export-dynamic' '-Wl,-export_dynamic'
  '';

  nativeBuildInputs = [
    intltool
    pkg-config
@@ -52,8 +58,6 @@ stdenv.mkDerivation {
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ fgaz ];
    platforms = platforms.all;
    # ld: unknown option: --export-dynamic
    broken = stdenv.hostPlatform.isDarwin;
    mainProgram = "yaup";
  };
}