From 80a9317d8b24759751544eb62ac384a8ed2574fa Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Fri, 13 Jul 2012 17:19:16 -0700 Subject: [PATCH] SConstruct: find Libzip on Darwin Add a `pkg-config` statement for Darwin in SConstruct to help scons find the Libzip includes. Patch from Homebrew. Fixes compile error with llvm-gcc. Fixes #274 --- SConstruct | 1 + 1 file changed, 1 insertion(+) diff --git a/SConstruct b/SConstruct index b89847e37..3cb02967c 100644 --- a/SConstruct +++ b/SConstruct @@ -90,6 +90,7 @@ if sys.platform == 'darwin': #Mac OS X boost_prefix = subprocess.check_output(["brew", "--prefix", "boost"]).strip() env.Append(CPPPATH = [boost_prefix+"/include"] ) env.Append(LIBPATH = [boost_prefix+"/lib"] ) + env.ParseConfig('pkg-config --cflags --libs libzip') elif sys.platform.startswith("freebsd"): env.ParseConfig('pkg-config --cflags --libs protobuf') env.Append(CPPPATH = ['/usr/local/include', '/usr/local/include/libxml2'])