Skip to content

Commit

Permalink
Fix for issue #9.
Browse files Browse the repository at this point in the history
The geos_config `--cflags` was returning a `-I /usr/...` which was being
appended to a `-I` in `CPPPATH_GEOS`. So using `--includes` now.
  • Loading branch information
Kashif Rasul committed Mar 11, 2012
1 parent 9f42046 commit af1cbc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wscript
Expand Up @@ -17,8 +17,8 @@ def configure(conf):
geos_ldflags = popen("%s --ldflags" % geos_config).readline().strip()[2:]
conf.env.append_value("LIBPATH_GEOS", geos_ldflags)
conf.env.append_value("LIB_GEOS", "geos")
geos_cflags = popen("%s --cflags" % geos_config).readline().strip()
conf.env.append_value("CPPPATH_GEOS", geos_cflags)
geos_includes = popen("%s --includes" % geos_config).readline().strip()
conf.env.append_value("CPPPATH_GEOS", geos_includes)

def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
Expand Down

0 comments on commit af1cbc2

Please sign in to comment.