Description:
Hi,
I want to build mysql with libmysqlclient.a, not libmysqlclient.so.
I static link with libstdc++.a, I want statid link with libmysqlclient.a.
But I don't want static link all system *.so with *.a.
Thanks.
ldd mysql
libncurses.so.5 => /usr/lib64/libncurses.so.5 (0x0000003a66d00000)
libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000003a5fa00000)
libmysqlclient.so.16 => /home/abc/mysql/lib/mysql/libmysqlclient.so.16 (0x0000002a95575000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003a66700000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003a66b00000)
libz.so.1 => /usr/lib64/libz.so.1 (0x0000003a5fe00000)
libm.so.6 => /lib64/tls/libm.so.6 (0x0000003a5f200000)
libc.so.6 => /lib64/tls/libc.so.6 (0x0000003a5ed00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003a5eb00000)
How to repeat:
Build gcc with only libstdc++.a, not with libstdc++.so.
../src/configure --prefix=/opt/gcc-4.2.1 --disable-nls --disable-shared --enable-threads=posix --enable-checking=release --enable-__cxa_atexit --disable-libunwind-exceptions --host=x86_64-redhat-linux