MySQL Forums
Forum List  »  Source, Builds, Binaries

Compiling without using shared libraries
Posted by: Andy Pippin
Date: September 29, 2004 04:24PM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
Compiling without using shared libraries
3946
September 29, 2004 04:24PM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.