[CMake] cross g++ linking shared instead of static libgcc

2011-01-12 Thread Darren Hollenbeck
I am using CMake to cross compile with an arm toolchain and getting a linker error: undefined reference to `__sync_fetch_and_add_4' the toolchain has both a shared and static libgcc: ./lib/gcc/arm-linux-gnueabi/4.5.2/libgcc.a ./lib/gcc/arm-linux-gnueabi/4.5.2/libgcc_eh.a

Re: [CMake] cross g++ linking shared instead of static libgcc

2011-01-12 Thread Hendrik Sattler
Am Donnerstag, 13. Januar 2011, 02:10:12 schrieb Darren Hollenbeck: I am using CMake to cross compile with an arm toolchain and getting a linker error: undefined reference to `__sync_fetch_and_add_4' the toolchain has both a shared and static libgcc: