[LLVMdev] How to disable or override libgcc when linking?

liangh at codeaurora.org liangh at codeaurora.org
Sat Oct 27 19:13:24 PDT 2012


I'm using compiler-rt to build the library to replace libgcc. How can I
disable -lgcc being added and passed to the linker?

When I use:
"clang -ccc-gcc-name  arm-cross-g++ hello.c -Lmypath -lmylib -v"

-lgcc is always added:
"...gcc/arm-none-linux-gnueabi/4.6.1/collect2 ... /tmp/hello-Pj9QxO.o
-lgcc ..."

How can I disable or override libgcc from the command line?


More information about the llvm-dev mailing list