Link-time optimization with android-ndk r8e -


i wanted compile sources (sdl , similar things) using new android ndk r8e. changelog states "enabled -flto in gcc 4.7, 4.6, clang 3.2 , clang 3.1". i've added -flto local_cflags, local_cppflags , local_ldflags. optimization , architecture flags arent in linker call , therefore no optimization done (aka slow binary). linker fails because cannot find functions .s files , instructions aren't available in thumb mode. worked fine without -flto.

so how use link-time optimization correctly , how avoid problems? , no, adding own optimization/architecture flags local_ldflags no answer because want use ndk , not own hacky build scripts.

the link-time optimization tested on amd64 (non-android) using own build scripts , worked fine (compiled, linked , 20% speed benefit). please keep answers ndk build system.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -