aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
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)