Skip to content

Commit 569f757

Browse files
committed
Use pg_config in bindings.gyp
1 parent 9132075 commit 569f757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

binding.gyp

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
'sources': [
66
'src/binding.cc'
77
],
8-
'include_dirs': ['/usr/include/postgresql'],
9-
'libraries' : ['-lpq']
8+
'include_dirs': ['<!@(pg_config --includedir)'],
9+
'libraries' : ['-lpq -L<!@(pg_config --libdir)']
1010
}
1111
]
1212
}

0 commit comments

Comments
 (0)