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

fixes python@3.9 gdbm build on ARM Mac #66458

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 4 additions & 0 deletions Formula/python@3.9.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ def install
end
# Avoid linking to libgcc https://mail.python.org/pipermail/python-dev/2012-February/116205.html
args << "MACOSX_DEPLOYMENT_TARGET=#{MacOS.version}"
cflags << "-I#{Formula["gdbm"].opt_include}"
ldflags << "-L#{Formula["gdbm"].opt_lib}"

# We want our readline! This is just to outsmart the detection code,
# superenv makes cc always find includes/libs!
Expand All @@ -138,6 +140,8 @@ def install

inreplace "setup.py" do |s|
s.gsub! "sqlite_setup_debug = False", "sqlite_setup_debug = True"
s.gsub! "db_setup_debug = False", "db_setup_debug = True"
s.gsub! "dbm_setup_debug = False", "dbm_setup_debug = True"
s.gsub! "for d_ in self.inc_dirs + sqlite_inc_paths:",
"for d_ in ['#{Formula["sqlite"].opt_include}']:"
end
Expand Down