I've built a native GCC successfully to my OS. It works without problems.
Now i decided to add support for C++ as well. I just changed the --enable-languages configure parameter from "c" to "c,c++" when i'm compiling the native GCC. All the stuff compiled without errors and the g++ works well on my OS. After compiling a simple hello world i just noticed that g++ uses the static version of libstdc++ instead of the shared version. My OS supports 32bit ELF shared libraries and they're OK with the previously mentioned native GCC.
I just checked the configure output from the libstdc++-v3 directory and i saw the following:
Code: Select all
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
Code: Select all
./configure --prefix=YYY --target=XXX --host=XXX --build=i686-pc-linux-gnu --enable-languages=c,c++ --disable-nls
What should I do/change to build the shared version of libstdc++ as well?
c0x