Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[DEV] [GUIDE] [LINUX] Comprehensive Guide to Cross-Compiling

OP JustArchi

21st December 2014, 01:31 PM   |  #21  
Senior Member
Thanks Meter: 5,527
 
1,247 posts
Join Date:Joined: Aug 2010
Donate to Me
Thanks so much for this Archi. This method seems to create the most portable and yet dynamic binaries.

Maybe all those Linux developers can enter this space now

Could do with some portable binary packages at Botbrew.

BTW I've sometimes found the following handy:

Code:
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--relax -Wl,--sort-common -Wl,--gc-sections -llog"
DEFFLAGS="-DNDEBUG -D__ANDROID__ -DANDROID"
and the

Code:
NDK/ndk-build
commmand alone magically does the entire job if there's a good Android.mk in the source package.
Last edited by idcrisis; 22nd December 2014 at 09:34 PM.
Post Reply Subscribe to Thread

Tags
justarchi cross compiler compiling guide
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes