python: clean up LINKFORSHARED inreplace

Fixes #20860.
This commit is contained in:
Misty De Meo committed 2013-06-27 16:50:01 -05:00
1 parent 3022e78622
commit 1dbae66b88
1 file changed
+4 -3
+4 -3
View File
@@ -159,9 +159,10 @@ class Python < Formula
# Fixes setting Python build flags for certain software
# See: https://github.com/mxcl/homebrew/pull/20182
# http://bugs.python.org/issue3588
inreplace "#{prefix}/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile",
"LINKFORSHARED= -u _PyMac_Error $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)",
"LINKFORSHARED= -u _PyMac_Error $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)"
inreplace "#{prefix}/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile" do |s|
s.change_make_var! "LINKFORSHARED",
"-u _PyMac_Error $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)"
end
end
def distutils_fix_superenv(args)