Check for xlC and add -qunique to CXXFLAGS if we're using it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1367,6 +1367,7 @@ if test "x$wx_cv_c_exto" '!=' "x"; then
|
||||
_AC_PROG_CC_G
|
||||
fi
|
||||
AC_BAKEFILE_PROG_MWCC
|
||||
AC_WX_PROG_XLCC
|
||||
|
||||
dnl is -traditional needed for correct compilations
|
||||
dnl adds -traditional for gcc if needed
|
||||
@@ -1390,6 +1391,7 @@ if test "x$wx_cv_cxx_exto" '!=' "x"; then
|
||||
_AC_PROG_CXX_G
|
||||
fi
|
||||
AC_BAKEFILE_PROG_MWCXX
|
||||
AC_WX_PROG_XLCXX
|
||||
|
||||
AC_LANG_RESTORE
|
||||
|
||||
@@ -1504,6 +1506,13 @@ dnl ------------------------------------------------------------------------
|
||||
dnl Platform specific tests
|
||||
dnl ------------------------------------------------------------------------
|
||||
|
||||
dnl xlC needs -qunique (at least on AIX) so that one source file can be
|
||||
dnl compiled to multiple object files and safely linked together.
|
||||
if test "x$XLCXX" = "xyes"; then
|
||||
CXXFLAGS="$CXXFLAGS -qunique"
|
||||
fi
|
||||
|
||||
|
||||
dnl This case is for OS X vs. everything else
|
||||
case "${host}" in
|
||||
powerpc-*-darwin* )
|
||||
|
Reference in New Issue
Block a user