Changeset 5fdf7a in git for Singular/configure.in.SAVE


Ignore:
Timestamp:
Jan 10, 2013, 11:00:55 AM (11 years ago)
Author:
Max Horn <max@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d101b165f063c8f437a101b437baa6095a596422
Parents:
80c703d0b975055386088b85c7bcdd5c7684adc0
git-author:
Max Horn <max@quendi.de>2013-01-10 11:00:55+01:00
git-committer:
Oleksandr Motsak <http://goo.gl/mcpzY>2013-01-10 16:45:07+01:00
Message:
Replace --no-{rtti,exceptions} by -fno-{rtti,exceptions}

This improves compatibility with clang. Moreover, to the best
of my knowledge, the --no-* variants are undocumented to start with.
At least the GCC manuals for all versions from 2.95.3 till 4.7.2
only list the -fno-* variants, as far as I could tell.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/configure.in.SAVE

    r80c703 r5fdf7a  
    426426  AC_LANG_SAVE
    427427  AC_LANG_CPLUSPLUS
    428   # check whether gcc accepts --no-rtti
    429   AC_MSG_CHECKING(whether gcc accepts --no-rtti)
    430   CXXFLAGS="${CXXFLAGS} --no-rtti"
     428  # check whether gcc accepts -fno-rtti
     429  AC_MSG_CHECKING(whether gcc accepts -fno-rtti)
     430  CXXFLAGS="${CXXFLAGS} -fno-rtti"
    431431  AC_CACHE_VAL(ac_cv_cxx_have_rtti,
    432432    AC_TRY_COMPILE(,,ac_cv_cxx_have_rtti=yes,ac_cv_cxx_have_rtti=no)
     
    436436    CXXFLAGS="$temp_flags"
    437437  else
    438     CXXFLAGS="${temp_flags} --no-rtti"
     438    CXXFLAGS="${temp_flags} -fno-rtti"
    439439    temp_flags="${CXXFLAGS}"
    440440  fi
    441441
    442 # check whether gcc accepts --no-exceptions
    443   AC_MSG_CHECKING(whether gcc accepts --no-exceptions)
    444   CXXFLAGS="${CXXFLAGS} --no-exceptions"
     442# check whether gcc accepts -fno-exceptions
     443  AC_MSG_CHECKING(whether gcc accepts -fno-exceptions)
     444  CXXFLAGS="${CXXFLAGS} -fno-exceptions"
    445445  AC_CACHE_VAL(ac_cv_cxx_have_exceptions,
    446446    AC_TRY_LINK(,,ac_cv_cxx_have_exceptions=yes,ac_cv_cxx_have_exceptions=no)
     
    450450    CXXFLAGS="$temp_flags"
    451451  else
    452     CXXFLAGS="${temp_flags} --no-exceptions"
     452    CXXFLAGS="${temp_flags} -fno-exceptions"
    453453    temp_flags="${CXXFLAGS}"
    454454  fi
     
    503503  temp_flags="${CXXFLAGS}"
    504504  if test "${ac_cv_cxx_have_rtti}" = yes; then
    505     CXXFLAGS="${temp_flags} --no-rtti"
     505    CXXFLAGS="${temp_flags} -fno-rtti"
    506506  fi
    507507  temp_flags="${CXXFLAGS}"
    508508  CXXTEMPLFLAGS="-fno-implicit-templates"
    509509  if test "${ac_cv_cxx_have_exceptions}" = yes; then
    510     CXXTEMPLFLAGS="${CXXTEMPLFLAGS} --no-exceptions"
     510    CXXTEMPLFLAGS="${CXXTEMPLFLAGS} -fno-exceptions"
    511511  fi
    512512  if test "$ac_cv_is_aix" = yes; then
Note: See TracChangeset for help on using the changeset viewer.