Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotutils: fix erroneous use of the -flat_namespace flag #94218

Merged
merged 1 commit into from
Feb 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Formula/plotutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ def install
# Fix usage of libpng to be 1.5 compatible
inreplace "libplot/z_write.c", "png_ptr->jmpbuf", "png_jmpbuf (png_ptr)"

# Avoid `-flat_namespace` flag.
ENV["MACOSX_DEPLOYMENT_TARGET"] = MacOS.version.to_s

args = %W[
--disable-debug
--disable-dependency-tracking
--disable-silent-rules
--prefix=#{prefix}
--enable-libplotter
]
# Prevent opportunistic linkage to X11
args << "--without-x" if OS.mac?

system "./configure", *args
system "make"
Expand Down