Blame cjdns.dyn.patch

2f8dfd
diff -up ./node_build/make.js.dyn ./node_build/make.js
4f4b22
--- ./node_build/make.js.dyn	2016-10-11 17:39:44.000000000 -0400
4f4b22
+++ ./node_build/make.js	2016-10-14 22:08:23.018241766 -0400
4f4b22
@@ -252,44 +252,9 @@ Builder.configure({
2f8dfd
 
2f8dfd
     }).nThen(function (waitFor) {
2f8dfd
 
2f8dfd
-        builder.config.libs.push(dependencyDir + '/cnacl/jsbuild/libnacl.a');
2f8dfd
-        builder.config.includeDirs.push(dependencyDir + '/cnacl/jsbuild/include/');
2f8dfd
-
4f4b22
-        // needed for Sign.c which pulls in crypto_int32.h
4f4b22
-        builder.config.includeDirs.push(dependencyDir + '/cnacl/jsbuild/include_internal/');
4f4b22
-
2f8dfd
-        Fs.exists(dependencyDir + '/cnacl/jsbuild/libnacl.a', waitFor(function (exists) {
2f8dfd
-            if (exists) { return; }
2f8dfd
-
2f8dfd
-            console.log("Build NaCl");
2f8dfd
-            var cwd = process.cwd();
2f8dfd
-            process.chdir(dependencyDir + '/cnacl/');
2f8dfd
-
2f8dfd
-            var NaCl = require(process.cwd() + '/node_build/make.js');
2f8dfd
-            NaCl.build(function (args, callback) {
2f8dfd
-                if (builder.config.systemName !== 'win32') {
2f8dfd
-                    args.unshift('-fPIC');
2f8dfd
-                }
2f8dfd
-
2f8dfd
-                args.unshift(builder.config.optimizeLevel, '-fomit-frame-pointer');
2f8dfd
-
2f8dfd
-                if (CFLAGS) {
2f8dfd
-                    [].push.apply(args, CFLAGS.split(' '));
2f8dfd
-                }
2f8dfd
-
2f8dfd
-                if (!builder.config.crossCompiling) {
2f8dfd
-                    if (NO_MARCH_FLAG.indexOf(process.arch) < -1) {
2f8dfd
-                        builder.config.cflags.push('-march=native');
2f8dfd
-                    }
2f8dfd
-                }
2f8dfd
-
2f8dfd
-                builder.cc(args, callback);
2f8dfd
-            },
2f8dfd
-            builder.config,
2f8dfd
-            waitFor(function () {
2f8dfd
-                process.chdir(cwd);
2f8dfd
-            }));
2f8dfd
-        }));
e38043
+        builder.config.libs.push('-lnacl');
2f8dfd
+        builder.config.libs.push('-lstdc++');
e38043
+        builder.config.includeDirs.push('/usr/include/nacl/');
2f8dfd
 
2f8dfd
     }).nThen(function (waitFor) {
2f8dfd
 
4f4b22
@@ -430,7 +395,7 @@ Builder.configure({
2f8dfd
     builder.buildExecutable('crypto/random/randombytes.c');
2f8dfd
 
2f8dfd
     builder.lintFiles(function (fileName, file, callback) {
2f8dfd
-        if (/dependencies/.test(fileName)) {
2f8dfd
+        if (/(dependencies|\/usr\/include)/.test(fileName)) {
2f8dfd
             callback('', false);
2f8dfd
             return;
2f8dfd
         }