Use pg_config in bindings.gyp
This commit is contained in:
parent
913207575b
commit
569f757f3f
@ -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)']
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user