This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how to compile glibc with -fPIC?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]