summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-07-06 11:25:58 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2009-07-06 11:25:58 -0700
commit40d5248ec0f0088463f742ceea9080177b2a244a (patch)
tree573ecfad1c31467565f96d0d563e095ba3ca35b4 /07240_all_as-needed-config-5.0.76.patch
parentReorder the index file for ease of use. (diff)
downloadmysql-extras-40d5248ec0f0088463f742ceea9080177b2a244a.tar.gz
mysql-extras-40d5248ec0f0088463f742ceea9080177b2a244a.tar.bz2
mysql-extras-40d5248ec0f0088463f742ceea9080177b2a244a.zip
as-needed fix from bug #253917.mysql-extras-20090706-1838Z
Diffstat (limited to '07240_all_as-needed-config-5.0.76.patch')
-rw-r--r--07240_all_as-needed-config-5.0.76.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/07240_all_as-needed-config-5.0.76.patch b/07240_all_as-needed-config-5.0.76.patch
new file mode 100644
index 0000000..709a0bd
--- /dev/null
+++ b/07240_all_as-needed-config-5.0.76.patch
@@ -0,0 +1,43 @@
+Fix LDFLAGS inclusion in the mysql_config libs output for --as-needed usage.
+
+X-Patch-URL: http://bugs.gentoo.org/attachment.cgi?id=182078&action=view
+Gentoo-Bug: 253917
+Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=253917
+
+diff --git a/scripts/mysql_config.pl.in b/scripts/mysql_config.pl.in
+index 3ae8baf..a7e8d57 100644
+--- a/scripts/mysql_config.pl.in
++++ b/scripts/mysql_config.pl.in
+@@ -198,11 +198,11 @@ else
+
+ my $flags;
+ $flags->{libs} =
+- [@ldflags,@lib_opts,'@ZLIB_DEPS@','@NON_THREADED_LIBS@','@openssl_libs@','@STATIC_NSS_FLAGS@'];
++ [@lib_opts,'@ZLIB_DEPS@','@NON_THREADED_LIBS@','@openssl_libs@','@STATIC_NSS_FLAGS@'];
+ $flags->{libs_r} =
+- [@ldflags,@lib_r_opts,'@ZLIB_DEPS@','@LIBS@','@openssl_libs@'];
++ [@lib_r_opts,'@ZLIB_DEPS@','@LIBS@','@openssl_libs@'];
+ $flags->{embedded_libs} =
+- [@ldflags,@lib_e_opts,'@ZLIB_DEPS@','@LIBS@','@WRAPLIBS@','@innodb_system_libs@','@openssl_libs@'];
++ [@lib_e_opts,'@ZLIB_DEPS@','@LIBS@','@WRAPLIBS@','@innodb_system_libs@','@openssl_libs@'];
+
+ $flags->{include} = ["-I$pkgincludedir"];
+ $flags->{cflags} = [@{$flags->{include}},split(" ",'@CFLAGS@')];
+diff --git a/scripts/mysql_config.sh b/scripts/mysql_config.sh
+index 915f623..8f85a37 100644
+--- a/scripts/mysql_config.sh
++++ b/scripts/mysql_config.sh
+@@ -102,10 +102,10 @@ fi
+
+ # Create options
+ # We intentionally add a space to the beginning and end of lib strings, simplifies replace later
+-libs=" $ldflags -L$pkglibdir -lmysqlclient @ZLIB_DEPS@ @NON_THREADED_LIBS@"
++libs=" -L$pkglibdir -lmysqlclient @ZLIB_DEPS@ @NON_THREADED_LIBS@"
+ libs="$libs @openssl_libs@ @STATIC_NSS_FLAGS@ "
+-libs_r=" $ldflags -L$pkglibdir -lmysqlclient_r @ZLIB_DEPS@ @LIBS@ @openssl_libs@ "
+-embedded_libs=" $ldflags -L$pkglibdir -lmysqld @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @innodb_system_libs@ @openssl_libs@ "
++libs_r=" -L$pkglibdir -lmysqlclient_r @ZLIB_DEPS@ @LIBS@ @openssl_libs@ "
++embedded_libs=" -L$pkglibdir -lmysqld @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @innodb_system_libs@ @openssl_libs@ "
+
+ if [ -r "$pkglibdir/libmygcc.a" ]; then
+ # When linking against the static library with a different version of GCC