mysql51: Refactor
This commit is contained in:
parent
b8d75c66ee
commit
5f231e7f08
@ -12,8 +12,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ ncurses zlib perl openssl ] ++ stdenv.lib.optional stdenv.isLinux ps;
|
buildInputs = [ ncurses zlib perl openssl ] ++ stdenv.lib.optional stdenv.isLinux ps;
|
||||||
|
|
||||||
configureFlags = "--enable-thread-safe-client --with-ssl=${openssl} --with-embedded-server --with-plugins=max-no-ndb" +
|
configureFlags = [
|
||||||
(if stdenv.system == "x86_64-linux" then " --with-lib-ccflags=-fPIC" else "");
|
"--enable-thread-safe-client"
|
||||||
|
"--with-ssl=${openssl}"
|
||||||
|
"--with-embedded-server"
|
||||||
|
"--with-plugins=max-no-ndb"
|
||||||
|
"--with-unix-socket-path=/run/mysqld/mysqld.sock"
|
||||||
|
] ++ stdenv.lib.optional (stdenv.system == "x86_64-linux") " --with-lib-ccflags=-fPIC";
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = if stdenv.system == "x86_64-linux" then "-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 "";
|
NIX_CFLAGS_CXXFLAGS = if stdenv.system == "x86_64-linux" then "-fPIC" else "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user