Unverified Commit 87d7169f authored by Vincenzo Mantova's avatar Vincenzo Mantova Committed by GitHub
Browse files

ghostscript: pad headers at link time to prevent install_name_tool failure on Darwin (#263833)

parent 545696ef
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -122,7 +122,10 @@ stdenv.mkDerivation rec {
  doCheck = false;

  # don't build/install statically linked bin/gs
  buildFlags = [ "so" ];
  buildFlags = [ "so" ]
    # without -headerpad, the following error occurs on Darwin when compiling with X11 support (as of 10.02.0)
    # error: install_name_tool: changing install names or rpaths can't be redone for: [...]libgs.dylib.10 (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
    ++ lib.optional (x11Support && stdenv.isDarwin) "LDFLAGS=-headerpad_max_install_names";
  installTargets = [ "soinstall" ];

  postInstall = ''