Use pg_config in bindings.gyp

This commit is contained in:
Oleg Efimov 2012-06-28 22:29:15 +04:00
parent 913207575b
commit 569f757f3f

View File

@ -5,8 +5,8 @@
'sources': [
'src/binding.cc'
],
'include_dirs': ['/usr/include/postgresql'],
'libraries' : ['-lpq']
'include_dirs': ['<!@(pg_config --includedir)'],
'libraries' : ['-lpq -L<!@(pg_config --libdir)']
}
]
}