mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Protect flags like -Wl,-O2 from being mangled by mysql_config (Bug #6964)
(Second commit of this patch -- first included wrong changes.) scripts/mysql_config.sh: Make sure we are only removing whole options (protects -Wl,-O2, for example)
This commit is contained in:
parent
55ace5fd44
commit
329a6e9c22
1 changed files with 1 additions and 1 deletions
|
@ -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/ *\$//'`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue