Visitar URL original
Use curl-config to find curl · TwineHealth/nodegit@74fd582 · GitHub
Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 74fd582

Browse files
sapersgilroy
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. (cherry picked from commit 785f184) [nodegit#1237]
1 parent 6ff67a8 commit 74fd582

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎generate/templates/templates/binding.gyp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@
9191
}
9292
],
9393
[
94-
"OS=='linux' or OS=='mac'", {
94+
"OS=='linux' or OS=='mac' or OS.endswith('bsd')", {
9595
"libraries": [
96-
"-lcurl"
96+
"<!(curl-config --libs)"
9797
]
9898
}
9999
],

‎vendor/libgit2.gyp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@
300300
}],
301301
["OS=='mac' or OS=='linux' or OS.endswith('bsd')", {
302302
"cflags": [
303-
"-DGIT_CURL"
303+
"-DGIT_CURL",
304+
"<!(curl-config --cflags)"
304305
],
305306
"defines": [
306307
"GIT_CURL",

0 commit comments

Comments
 (0)