Added some MySQL fixes in order to have a working libmysqld library on x86_64-linux

svn path=/nixpkgs/branches/stdenv-updates/; revision=15215
This commit is contained in:
Sander van der Burg 2009-04-21 13:22:38 +00:00
parent be04acaf45
commit 5b9c5c62be

View File

@ -12,7 +12,12 @@ stdenv.mkDerivation {
buildInputs = [ps ncurses zlib perl openssl];
configureFlags = "--enable-thread-safe-client --disable-static --with-openssl=${openssl} --with-berkeley-db --with-embedded-server";
configureFlags = "--enable-thread-safe-client --disable-static --with-openssl=${openssl} --with-berkeley-db --with-embedded-server" +
(if stdenv.system == "x86_64-linux" then " --with-lib-ccflags=-fPIC" else "");
NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
NIX_CFLAGS_CXXFLAGS = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
postInstall =
''