From daa1ad6dc4ee819f70ef66f6f2016e623d096274 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Fri, 26 Jan 2018 18:26:43 +0100 Subject: [PATCH] Use '-ldl' compiler flag when associated library used Resolves: #1538990 --- mariadb.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mariadb.spec b/mariadb.spec index 2c10373..852095c 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -141,7 +141,7 @@ Name: mariadb Version: %{compatver}.%{bugfixver} -Release: 4%{?with_debug:.debug}%{?dist} +Release: 5%{?with_debug:.debug}%{?dist} Epoch: 3 Summary: A community developed branch of MySQL @@ -788,6 +788,8 @@ rm -r storage/tokudb/mysql-test/tokudb/t/*.py CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" # force PIC mode so that we can build libmysqld.so CFLAGS="$CFLAGS -fPIC" +# Use -ldl for some plugins #1538990 +CFLAGS="$CFLAGS -ldl" # gcc seems to have some bugs on sparc as of 4.4.1, back off optimization; rhbz#529298 # Note: sparc = s390 %ifarch sparc sparcv9 sparc64 @@ -1624,6 +1626,10 @@ fi %endif %changelog +* Fri Jan 26 2018 Michal Schorm - 3:10.2.12-5 +- Use '-ldl' compiler flag when associated library used + Resolves: #1538990 + * Thu Jan 25 2018 Michal Schorm - 3:10.2.12-4 - Fix the upgrade path. Build TokuDB subpackage again, but build a unsupported configuration by upstream (without Jemalloc).