how to change the toolchain?

55 views
Skip to first unread message

SR D

unread,
Aug 24, 2016, 7:22:03 PM8/24/16
to crystax-ndk
When I compiling my application, I see that it is using the arm-linux-androideabi-5 tool chain. I would like to use the arm-linux-androideabi-4.9 that I see under crystax-ndk-10.3.2/toolchains. In my Android.mk file I've tried to change this using the following ...

NDK_TOOLCHAIN_VERSION := 4.9

But I can see that this isn't changing the toolchain with viewing the compile/link output.

Any ideas?

Dmitry Moskalchuk

unread,
Aug 24, 2016, 7:26:08 PM8/24/16
to cryst...@googlegroups.com
Hello,

You should put that line to `Application.mk`, not to `Android.mk`. Being added to `Android.mk`, it's just ignored.

Alternatively, you can call ndk-build with appropriate parameter (in this case adding the same parameter to `Application.mk` is not required):

ndk-build NDK_TOOLCHAIN_VERSION=4.9

-- 
Dmitry Moskalchuk
--
You received this message because you are subscribed to the Google Groups "crystax-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crystax-ndk...@googlegroups.com.
To post to this group, send email to cryst...@googlegroups.com.
Visit this group at https://groups.google.com/group/crystax-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/crystax-ndk/54be62d8-7cac-434f-a10e-198e2c2c2a76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages