From Walloping Cassowary, 11 Years ago, written in Plain Text.
Embed
  1. diff --git a/node_build/make.js b/node_build/make.js
  2. index 6f25afa..cf8b340 100644
  3. --- a/node_build/make.js
  4. +++ b/node_build/make.js
  5. @@ -66,9 +66,9 @@ Builder.configure({                                                                              
  6.          // Broken GCC patch makes -fstack-protector-all not work                                                  
  7.          // workaround is to give -fno-stack-protector first.                                                      
  8.          // see: https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/691722                                      
  9. -        '-fno-stack-protector',
  10. -        '-fstack-protector-all',
  11. -        '-Wstack-protector',
  12. +        //'-fno-stack-protector',
  13. +        //'-fstack-protector-all',
  14. +        //'-Wstack-protector',
  15.  
  16.          '-D','HAS_BUILTIN_CONSTANT_P',
  17.  
  18. @@ -84,11 +84,12 @@ Builder.configure({
  19.  
  20.          // disable for speed, enable for safety
  21.          '-D','Identity_CHECK=1',
  22. -        '-D','Allocator_USE_CANARIES=1',
  23. +        //'-D','Allocator_USE_CANARIES=1',
  24.          '-D','PARANOIA=1'
  25.      );
  26.      var logLevel = process.env['Log_LEVEL'] || 'DEBUG';
  27.      builder.config.cflags.push('-D','Log_'+logLevel);
  28. +    process.env['NO_PIE'] = 'true';
  29.      if (process.env['NO_PIE'] === undefined) {
  30.          builder.config.cflags.push('-fPIE');
  31.      }
  32.