File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 127
127
'ldflags' : [ '-Wl,-bbigtoc' ],
128
128
}],
129
129
['OS == "android"' , {
130
- 'cflags' : [ '-fPIE ' ],
131
- 'ldflags' : [ '-fPIE' , '-pie ' ]
130
+ 'cflags' : [ '-fPIC ' ],
131
+ 'ldflags' : [ '-fPIC ' ]
132
132
}],
133
133
],
134
134
'msvs_settings' : {
187
187
],
188
188
},],
189
189
['OS == "android"' , {
190
- 'cflags' : [ '-fPIE ' ],
191
- 'ldflags' : [ '-fPIE' , '-pie ' ]
190
+ 'cflags' : [ '-fPIC ' ],
191
+ 'ldflags' : [ '-fPIC ' ]
192
192
}],
193
193
],
194
194
'msvs_settings' : {
Original file line number Diff line number Diff line change @@ -1122,14 +1122,17 @@ def configure_node(o):
1122
1122
o ['variables' ]['node_shared' ] = b (options .shared )
1123
1123
node_module_version = getmoduleversion .get_version ()
1124
1124
1125
- if sys .platform == 'darwin' :
1125
+ if options .dest_os == 'android' :
1126
+ shlib_suffix = 'so'
1127
+ elif sys .platform == 'darwin' :
1126
1128
shlib_suffix = '%s.dylib'
1127
1129
elif sys .platform .startswith ('aix' ):
1128
1130
shlib_suffix = '%s.a'
1129
1131
else :
1130
1132
shlib_suffix = 'so.%s'
1133
+ if '%s' in shlib_suffix :
1134
+ shlib_suffix %= node_module_version
1131
1135
1132
- shlib_suffix %= node_module_version
1133
1136
o ['variables' ]['node_module_version' ] = int (node_module_version )
1134
1137
o ['variables' ]['shlib_suffix' ] = shlib_suffix
1135
1138
You can’t perform that action at this time.
0 commit comments