You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node-v5.0.0-rc.1 can't work on Android L due to error: only position independent executables (PIE) are supported #3581
['(target_arch=="arm" or target_arch=="arm64" or target_arch=="x64" or target_arch=="ia32") and component!="shared_library"',{'cflags': ['-fPIE',],'ldflags': ['-pie',],}],
@bnoordhuis@Fishrock123 I'm behind the firewall in company, so can't pull code from github . Worse still, I can't even access github at home due to the firewall of China >_<.
I will be glad if someone contribute these changes to developer branch.
Is there an Android developer who wants to take this on? @kikijhu's changes look useful but no one on the core team develops on or for Android, as far as I'm aware.
@bnoordhuis@kikijhu I was looking just for your answer. Works fine for me with node v4.4.0. Will test on node 5 & do a pull request as soon as possible. Thanks a lot =D
Activity
mscdex commentedon Oct 29, 2015
Can't you just set the standard
CFLAGSandLDFLAGSenvironment variables before compiling?kikijhu commentedon Oct 29, 2015
I see flag settings in these file, and it seemed node-v5.0.0-rc.1 already considered PIE, but what's the problem to the end?
node/deps/uv/common.gypi
deps/v8/build/standalone.gypi
Fishrock123 commentedon Nov 2, 2015
cc @evanlucas and @Gioyik maybe?
kikijhu commentedon Nov 9, 2015
I've fixed this issue by modified
<node-v5.0.0-rc.1>\common.gypi.I added -fPIE for cflags and -pie for ldflags on Android.
bnoordhuis commentedon Nov 9, 2015
A pull request that updates common.gypi would be fine IMO. Please see CONTRIBUTING.md for details.
IvanGaravito commentedon Dec 31, 2015
Hey @kikijhu , I had the same problem with node v4.2.4, and it worked adding PIE flags as you said. Thanks!
kikijhu commentedon Jan 14, 2016
@IvanGaravito Glad to help you : )
kikijhu commentedon Jan 18, 2016
I modified the solution.
I add a flag cflag-pie in ./android-configure
If you want to compile the code with -fPIE, just set it as true, otherwise just set it as false.
Modify ./configure
Modify ./common.gypi
./config.gypi will contains the flag
Fishrock123 commentedon Jan 18, 2016
@kikijhu Mind making a Pull Request for this? :D
kikijhu commentedon Jan 19, 2016
@bnoordhuis @Fishrock123 I'm behind the firewall in company, so can't pull code from github . Worse still, I can't even access github at home due to the firewall of China
>_<.I will be glad if someone contribute these changes to developer branch.
bnoordhuis commentedon Feb 12, 2016
Is there an Android developer who wants to take this on? @kikijhu's changes look useful but no one on the core team develops on or for Android, as far as I'm aware.
bsegault commentedon Mar 17, 2016
@bnoordhuis @kikijhu I was looking just for your answer. Works fine for me with node v4.4.0. Will test on node 5 & do a pull request as soon as possible. Thanks a lot =D
rvagg commentedon Mar 22, 2016
I'm seeking some feedback about how Node.js is used on Android if anyone watching this thread would like to tell us about it: nodejs/build#359
bnoordhuis commentedon May 2, 2016
Closing, we're building with
-fPIE -fpieas of commit 271201f.