From 71a4d6038b34ebe16f7908380e4c790e9f6b36cc Mon Sep 17 00:00:00 2001 From: Samuel John Date: Tue, 12 Feb 2013 11:52:25 +0100 Subject: python3: Link against keg_only sqlite Fixes #17765. Closes #17788. Signed-off-by: Adam Vandenberg --- Library/Formula/python3.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Formula/python3.rb') 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) -- cgit v1.2.3