From 14743df77c7b72991ea8cfa72ab26be4bb9ac9a4 Mon Sep 17 00:00:00 2001 From: Elijah Hamovitz Date: Mon, 8 Aug 2011 16:14:51 -0700 Subject: [PATCH] added libpath options to waf configuration; this was necessary to correctly detect gif and jpeg support on FreeBSD --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index e0d1b7b..22ef16a 100644 --- a/wscript +++ b/wscript @@ -17,10 +17,10 @@ def configure(conf): conf.check_tool('node_addon') conf.env.append_value('CPPFLAGS', '-DNDEBUG') - if conf.check(lib='gif', uselib_store='GIF', mandatory=False): + if conf.check(lib='gif', libpath=['/lib', '/usr/lib', '/usr/local/lib'], uselib_store='GIF', mandatory=False): conf.env.append_value('CPPFLAGS', '-DHAVE_GIF=1') - if conf.check(lib='jpeg', uselib_store='JPEG', mandatory=False): + if conf.check(lib='jpeg', libpath=['/lib', '/usr/lib', '/usr/local/lib'], uselib_store='JPEG', mandatory=False): conf.env.append_value('CPPFLAGS', '-DHAVE_JPEG=1') if conf.env['USE_PROFILING'] == True: