Skip to content

Commit 7623c4b

Browse files
saperCroydon
authored andcommitted
Use curl-config to find curl
On BSDs headers will be in /usr/local/include which is not added to the include path automatically.
1 parent e9614db commit 7623c4b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

generate/templates/templates/binding.gyp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@
9292
}
9393
],
9494
[
95-
"OS=='linux' or OS=='mac'", {
95+
"OS=='linux' or OS=='mac' or OS.endswith('bsd')", {
9696
"libraries": [
97-
"-lcurl"
97+
"<!(curl-config --libs)"
9898
]
9999
}
100100
],

vendor/libgit2.gyp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@
305305
}],
306306
["OS=='mac' or OS=='linux' or OS.endswith('bsd')", {
307307
"cflags": [
308-
"-DGIT_CURL"
308+
"-DGIT_CURL",
309+
"<!(curl-config --cflags)"
309310
],
310311
"defines": [
311312
"GIT_CURL",

0 commit comments

Comments
 (0)