From: Fredrik Fornwall Date: Thu, 22 Sep 2016 19:58:53 +0000 (-0400) Subject: nodejs: Add patch to common.gypi for -pie X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/96fed5a72e25cabc7d7daded32188675f55ec021?ds=inline nodejs: Add patch to common.gypi for -pie --- diff --git a/packages/nodejs/common.gypi.patch b/packages/nodejs/common.gypi.patch new file mode 100644 index 00000000..f70ac38c --- /dev/null +++ b/packages/nodejs/common.gypi.patch @@ -0,0 +1,27 @@ +diff -u -r ../node-v6.5.0/common.gypi ./common.gypi +--- ../node-v6.5.0/common.gypi 2016-08-26 11:27:16.000000000 -0400 ++++ ./common.gypi 2016-09-14 18:33:18.677745057 -0400 +@@ -78,7 +78,10 @@ + }], + ['OS == "android"', { + 'cflags': [ '-fPIE' ], +- 'ldflags': [ '-fPIE', '-pie' ] ++ 'ldflags': [ '-fPIE' ], ++ 'target_conditions': [ ++ ['_type == "executable"', {'ldflags': [ '-pie' ]}] ++ ] + }], + ['node_shared=="true"', { + 'msvs_settings': { +@@ -128,7 +131,10 @@ + }], + ['OS == "android"', { + 'cflags': [ '-fPIE' ], +- 'ldflags': [ '-fPIE', '-pie' ] ++ 'ldflags': [ '-fPIE' ], ++ 'target_conditions': [ ++ ['_type == "executable"', {'ldflags': [ '-pie' ]}] ++ ] + }], + ['node_shared=="true"', { + 'msvs_settings': {