how to compile glibc with -fPIC?
CNZhangQuan
cnzhangquan@gmail.com
Mon Oct 7 06:50:00 GMT 2013
hi,
i want to build a 'static toolchain', with option --disable-shared,
for no shared library include/depend in the toolchain-self
cause i don't want the target binary runs depend on the toolchain,
such as libc.so, ld-xxx.so.
but when the target binary need the function dlopen, it give a build
error that libc.a need to recompile with -fPIC
so, how to compile glibc with -fPIC?
or maybe i should ask is it possible to gen a shared library with
static toolchain?
thanks
Quan
2013-10-07
More information about the Gcc-help
mailing list