FORUMS

Android M Preview Images – XDA TV

Android M preview images are available. That and much more news is covered by Jordan when he … more

I/O Summary: How Android M Handles Power And Charging

In the spirit of improving the core Android experience, Google is changing Android … more

I/O Summary: Google Photos App

At I/O 2015, Google tackled the information problem in mobile once more, this time through … more

I/O Summary: Development, Play Store, The Next Billion

VP of Engineering Jen Fitzpatrick began talking about what Google is doing to … more

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

Thanks Meter: 33,522
 
By JustArchi, Recognized Contributor / Recognized Developer on 19th April 2014, 03:35 AM
Post Reply Subscribe to Thread Email Thread
21st December 2014, 12:31 PM |#21  
Senior Member
Thanks Meter: 5,543
 
Donate to Me
More
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:
OPTICFLAGS="-s -flto=8 -ffunction-sections -fdata-sections -fvisibility=hidden -funswitch-loops -frename-registers -frerun-cse-after-loop -fomit-frame-pointer -fgcse-after-reload -fgcse-sm -fgcse-las -fweb -ftracer -fstrict-aliasing -fpic -pie"
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; 5th January 2015 at 05:38 AM.
 
 
26th February 2015, 09:29 PM |#22  
Member
Thanks Meter: 7
 
More
Hi! Can you post your script somewhere else? Dropbox says the content is locked due to large number of requests.

You can create a Github Gist and post link.
27th February 2015, 11:20 PM |#23  
skulldreamz's Avatar
Senior Member
Flag Baltimore
Thanks Meter: 867
 
Donate to Me
More
On page 2 he already did that
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