how to compile glibc with -fPIC?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux