This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
how to compile glibc with -fPIC?
- From: CNZhangQuan <cnzhangquan at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 7 Oct 2013 14:50:01 +0800
- Subject: how to compile glibc with -fPIC?
- Authentication-results: sourceware.org; auth=none
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