Protect flags like -Wl,-O2 from being mangled by mysql_config (Bug #6964)

(Second commit of this patch -- first included wrong changes.)
This commit is contained in:
jimw@mysql.com 2005-01-05 03:43:37 +01:00
parent 9740ca62f9
commit d14f3d7675

View File

@ -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/ *\$//'`