I would like to compile MySQL (v4.1.5) on a Solaris8/x86 box without having it depend on any shared libraries (it will actually be run on a Solaris 7 box). I configured it like so:
./configure
--prefix=/usr/local/mysql
--disable-dependency-tracking
--disable-shared
--with-client-ldflags='-O2 -static'
--with-mysqld-ldflags='-O2 -static'
--with-lib-ccflags=-O2
--with-mysqld-user=mysql
--with-unix-socket-path=/usr/local/mysql/run/mysql.sock
--with-isam
--with-vio
--without-bench
--without-docs
--enable-fast-install
but it still ended up being dependant on:
% ldd mysqld
librt.so.1 => /usr/lib/librt.so.1
libz.so => /usr/local/lib/libz.so
libdl.so.1 => /usr/lib/libdl.so.1
libpthread.so.1 => /usr/lib/libpthread.so.1
libthread.so.1 => /usr/lib/libthread.so.1
libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1
libgen.so.1 => /usr/lib/libgen.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libstdc++.so.3 => /usr/local/lib/libstdc++.so.3
libm.so.1 => /usr/lib/libm.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libc.so.1 => /usr/lib/libc.so.1
libaio.so.1 => /usr/lib/libaio.so.1
libmp.so.2 => /usr/lib/libmp.so.2
Is there some other magic configuration value I should be setting?
Grazi.
aBp.
--
Andy Pippin
andy_pippin@hotmail.com