Skip to content

Commit e8f7649

Browse files
committed
Merge pull request brianc#290 from francoiscolas/master
fixed build broken under freebsd
2 parents 8ce808d + 8cfefb1 commit e8f7649

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

binding.gyp

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,6 @@
66
'src/binding.cc'
77
],
88
'conditions' : [
9-
['OS=="mac"', {
10-
'include_dirs': ['<!@(pg_config --includedir)'],
11-
'libraries' : ['-lpq -L<!@(pg_config --libdir)']
12-
}],
13-
['OS=="linux"', {
14-
'include_dirs': ['<!@(pg_config --includedir)'],
15-
'libraries' : ['-lpq -L<!@(pg_config --libdir)']
16-
}],
17-
['OS=="solaris"', {
18-
'include_dirs': ['<!@(pg_config --includedir)'],
19-
'libraries' : ['-lpq -L<!@(pg_config --libdir)']
20-
}],
219
['OS=="win"', {
2210
'include_dirs': ['<!@(pg_config --includedir)'],
2311
'libraries' : ['libpq.lib'],
@@ -28,6 +16,9 @@
2816
]
2917
},
3018
}
19+
}, { # OS!="win"
20+
'include_dirs': ['<!@(pg_config --includedir)'],
21+
'libraries' : ['-lpq -L<!@(pg_config --libdir)']
3122
}]
3223
]
3324
}

0 commit comments

Comments
 (0)