| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e946dff commit 4c2af33
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,9 +9,19 @@ module.exports = function retrieveExternalDependencies() { | |||
| 9 | 9 | ||
| 10 | 10 | return new Promise(function(resolve, reject) { | |
| 11 | 11 | console.info("[nodegit] Configuring libssh2."); | |
| 12 | - cp.execFile( | ||
| 13 | - rooted("vendor/libssh2/") + "configure", | ||
| 14 | - {cwd: rooted("vendor/libssh2/")}, | ||
| 12 | + var opensslDir = rooted("vendor/openssl/openssl"); | ||
| 13 | + var newEnv = {}; | ||
| 14 | + Object.keys(process.env).forEach(function(key) { | ||
| 15 | + newEnv[key] = process.env[key]; | ||
| 16 | + }); | ||
| 17 | + newEnv.CPPFLAGS = newEnv.CPPFLAGS || ""; | ||
| 18 | + newEnv.CPPFLAGS += " -I" + path.join(opensslDir, "include"); | ||
| 19 | + newEnv.CPPFLAGS = newEnv.CPPFLAGS.trim(); | ||
| 20 | + | ||
| 21 | + cp.exec( | ||
| 22 | + rooted("vendor/libssh2/configure") + | ||
| 23 | + " --with-libssl-prefix=" + opensslDir, | ||
| 24 | + {cwd: rooted("vendor/libssh2/"), env: newEnv}, | ||
| 15 | 25 | function(err, stdout, stderr) { | |
| 16 | 26 | if (err) { | |
| 17 | 27 | console.error(err); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments