Created
December 10, 2017 14:58
-
-
Save wschenk/7904027535a005d8b6b2a9dcf295427c to your computer and use it in GitHub Desktop.
Patching node-gyp config for termux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/.node-gyp/8.9.3/include/node$ diff common.gypi ~/storage/downloads/common.gypi | |
--- common.gypi | |
+++ /home/storage/downloads/common.gypi | |
@@ -90,8 +90,8 @@ | |
'ldflags': [ '-Wl,-bbigtoc' ], | |
}], | |
['OS == "android"', { | |
- 'cflags': [ '-fPIE' ], | |
- 'ldflags': [ '-fPIE', '-pie' ] | |
+ 'cflags': [ '-fPIC' ], | |
+ 'ldflags': [ '-fPIC' ] | |
}], | |
['node_shared=="true"', { | |
'msvs_settings': { | |
@@ -144,8 +144,8 @@ | |
'cflags': [ '-fno-omit-frame-pointer' ], | |
}], | |
['OS == "android"', { | |
- 'cflags': [ '-fPIE' ], | |
- 'ldflags': [ '-fPIE', '-pie' ] | |
+ 'cflags': [ '-fPIC' ], | |
+ 'ldflags': [ '-fPIC' ] | |
}], | |
['node_shared=="true"', { | |
'msvs_settings': { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment