Remove all unwanted occurrences of -mt/-pthread in configure.

Remove all inappropriate compiler options and not just the first one as they
can occur multiple times because they may come from pkg-config output for
several different libraries.

Closes #13647.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-11-10 00:30:04 +00:00
parent 85fb0a0afd
commit 4fb1e79b4d
3 changed files with 19 additions and 17 deletions

12
configure vendored
View File

@@ -55645,17 +55645,17 @@ WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
case "${host}" in
*-*-solaris2* )
if test "$GCC" = yes; then
CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
LIBS=`echo $LIBS | sed 's/-mt//'`
EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//g'`
LIBS=`echo $LIBS | sed 's/-mt//g'`
EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//g'`
fi
;;
*-*-linux* )
if test "x$SUNCXX" = xyes; then
CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
LIBS=`echo $LIBS | sed 's/-pthread//'`
EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//g'`
LIBS=`echo $LIBS | sed 's/-pthread//g'`
EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//g'`
fi
;;
esac