summaryrefslogtreecommitdiff
path: root/scripts/mysql_config.sh
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-01-05 03:43:37 +0100
committerjimw@mysql.com <>2005-01-05 03:43:37 +0100
commitd14f3d76752f311c6fe81ba808cf1131da517e29 (patch)
treeb2d7a78555687f36176bac2866ab68f271705f01 /scripts/mysql_config.sh
parent9740ca62f94d2d7f527dcb4f3907befd0e2d3f2d (diff)
downloadmariadb-git-d14f3d76752f311c6fe81ba808cf1131da517e29.tar.gz
Protect flags like -Wl,-O2 from being mangled by mysql_config (Bug #6964)
(Second commit of this patch -- first included wrong changes.)
Diffstat (limited to 'scripts/mysql_config.sh')
-rw-r--r--scripts/mysql_config.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mysql_config.sh b/scripts/mysql_config.sh
index 86cbe944416..35ddbcac471 100644
--- a/scripts/mysql_config.sh
+++ b/scripts/mysql_config.sh
@@ -100,7 +100,7 @@ for remove in DDBUG_OFF DSAFEMALLOC USAFEMALLOC DSAFE_MUTEX \
DPEDANTIC_SAFEMALLOC DUNIV_MUST_NOT_INLINE DFORCE_INIT_OF_VARS \
DEXTRA_DEBUG DHAVE_purify 'O[0-9]' 'W[-A-Za-z]*'
do
- cflags=`echo "$cflags"|sed -e "s/-$remove *//g"`
+ cflags=`echo "$cflags"|sed -e "s/ -$remove */ /g"`
done
cflags=`echo "$cflags"|sed -e 's/ *\$//'`