summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/tools/graphics/graphviz/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/graphviz/default.nix b/pkgs/tools/graphics/graphviz/default.nix
index fbf1c114d0a..f9fbf1f88ea 100644
--- a/pkgs/tools/graphics/graphviz/default.nix
+++ b/pkgs/tools/graphics/graphviz/default.nix
@@ -38,6 +38,13 @@ stdenv.mkDerivation rec {
     ]
     ++ stdenv.lib.optional (xorg == null) "--without-x";
 
+  prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
+    substituteInPlace cmd/dot/Makefile.in --replace "-lstdc++" ""
+    substituteInPlace cmd/edgepaint/Makefile.in --replace "-lstdc++" ""
+    substituteInPlace cmd/mingle/Makefile.in --replace "-lstdc++" ""
+    substituteInPlace plugin/gdiplus/Makefile.in --replace "-lstdc++" ""
+  '';
+
   preBuild = ''
     sed -e 's@am__append_5 *=.*@am_append_5 =@' -i lib/gvc/Makefile
   '';