aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
authorSamuel John2013-02-12 11:52:25 +0100
committerAdam Vandenberg2013-02-12 07:01:03 -0800
commit71a4d6038b34ebe16f7908380e4c790e9f6b36cc (patch)
treee77c1f13e62062e03652ec19f8cbba1305656c02 /Library/Formula/python3.rb
parent9017f885a392ef5203263816b45fd35f31b9bcf1 (diff)
downloadhomebrew-71a4d6038b34ebe16f7908380e4c790e9f6b36cc.tar.bz2
python3: Link against keg_only sqlite
Fixes #17765. Closes #17788. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/python3.rb')
-rw-r--r--Library/Formula/python3.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index 52792aa89..d94805e99 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -154,8 +154,8 @@ class Python3 < Formula
def distutils_fix_superenv(args)
if superenv?
# To allow certain Python bindings to find brewed software:
- cflags = "CFLAGS=-I#{HOMEBREW_PREFIX}/include"
- ldflags = "LDFLAGS=-L#{HOMEBREW_PREFIX}/lib"
+ cflags = "CFLAGS=-I#{HOMEBREW_PREFIX}/include -I#{Formula.factory('sqlite').opt_prefix}/include"
+ ldflags = "LDFLAGS=-L#{HOMEBREW_PREFIX}/lib -L#{Formula.factory('sqlite').opt_prefix}/lib"
unless MacOS::CLT.installed?
# Help Python's build system (distribute/pip) to build things on Xcode-only systems
# The setup.py looks at "-isysroot" to get the sysroot (and not at --sysroot)