* Added the MySQL ODBC connector.
* Enable unixODBC support in PHP. * Build MySQL with thread-safe client libraries. svn path=/nixpkgs/trunk/; revision=5045
This commit is contained in:
@@ -2,7 +2,15 @@ source $stdenv/setup
|
||||
|
||||
alias lex=flex
|
||||
|
||||
configureFlags="--with-libxml-dir=$libxml2 --with-apxs2=$apacheHttpd/bin/apxs --with-apr-util=$apacheHttpd"
|
||||
configureFlags="$configureFlags \
|
||||
--with-libxml-dir=$libxml2 \
|
||||
--with-apxs2=$apacheHttpd/bin/apxs \
|
||||
--with-apr-util=$apacheHttpd"
|
||||
|
||||
if test -n "$unixODBC"; then
|
||||
configureFlags="$configureFlags --with-unixODBC=$unixODBC"
|
||||
fi
|
||||
|
||||
makeFlags="APXS_LIBEXECDIR=$out/modules $makeFlags"
|
||||
|
||||
genericBuild
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, flex, bison, libxml2, apacheHttpd}:
|
||||
{stdenv, fetchurl, flex, bison, libxml2, apacheHttpd, unixODBC ? null}:
|
||||
|
||||
assert libxml2 != null;
|
||||
|
||||
@@ -11,8 +11,13 @@ stdenv.mkDerivation {
|
||||
|
||||
inherit flex bison libxml2 apacheHttpd;
|
||||
|
||||
buildInputs = [flex bison libxml2 apacheHttpd];
|
||||
builder = ./builder.sh;
|
||||
|
||||
buildInputs = [flex bison libxml2 apacheHttpd];
|
||||
|
||||
inherit unixODBC;
|
||||
|
||||
odbcSupport = unixODBC != null;
|
||||
|
||||
patches = [./fix.patch];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user