How to compile newlib, libstdc++ as shared libraries for ARM

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
OSwhatever
Member
Member
Posts: 595
Joined: Mon Jul 05, 2010 4:15 pm

How to compile newlib, libstdc++ as shared libraries for ARM

Post by OSwhatever »

Both newlib and libstdc++ ignore the "--enable-shared" flag as the target "arm-none-eabi" doesn't support shared libraries in the configuration script. In the case for a custom operating system and you want to add shared library support that makes it a little bit unfortunate. Have anyone successfully compiled newlib and libstdc++ so that it outputs .so shared libraries for ARM custom OS targets?
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: How to compile newlib, libstdc++ as shared libraries for

Post by sortie »

You need to set up an OS-specific toolchain. If you got a working user-space, it's a time time to invest in setting up such a toolchain. You can then adapt it nicely for whatever needs you have.
Post Reply