Skip to content

Commit

Permalink
ghostscript: set correct library install names
Browse files Browse the repository at this point in the history
This ensures that the libraries are built with the install names that we
want.

`brew` will fix up the install names for us even if we don't do this,
but we may as well just build the libraries with the right install names
in the first place so we don't have to fix them up later on.
  • Loading branch information
carlocab committed Sep 22, 2024
1 parent 38e4ea5 commit c4e4459
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Formula/g/ghostscript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def install
--with-system-libtiff
--without-x]

# Set the correct library install names so that `brew` doesn't need to fix them up later.
ENV["DARWIN_LDFLAGS_SO_PREFIX"] = "#{opt_lib}/"
system configure, *std_configure_args, *args

# Install binaries and libraries
Expand Down

0 comments on commit c4e4459

Please sign in to comment.