summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-08-20 08:45:20 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-08-20 08:45:20 +0000
commitf29149beabc84c3e56b51b0ac42b92fe122903a0 (patch)
treede6902e98e1e8377d833f63563c8319944d8f388
parenta1b88ea91165f3ce8d8fb4a0ffbdf5ab66ee3add (diff)
check if the compiler accepts -fno-rtti -fno-exceptions
SVN revision: 41882
-rw-r--r--configure.ac17
-rw-r--r--src/bin/Makefile.am2
2 files changed, 18 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index cb7fed2..6fda04a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -198,6 +198,23 @@ case "$host_os" in
198esac 198esac
199AC_SUBST(WIN32_CFLAGS) 199AC_SUBST(WIN32_CFLAGS)
200 200
201EXPEDITE_CXXFLAGS=""
202AC_LANG_PUSH([C++])
203CXXFLAGS_save="${CXXFLAGS}"
204CXXFLAGS="${CXXFLAGS} -fno-rtti -fno-exceptions"
205AC_COMPILE_IFELSE(
206 [AC_LANG_PROGRAM([[]])],
207 [have_cxx_flags="yes"],
208 [have_cxx_flags="no"])
209AC_MSG_CHECKING([whether the compiler supports -fno-rtti -fno-exceptions])
210AC_MSG_RESULT([${have_cxx_flags}])
211CXXFLAGS="${CXXFLAGS_save}"
212if test "x${have_cxx_flags}" = "xyes" ; then
213 EXPEDITE_CXXFLAGS="-fno-rtti -fno-exceptions"
214fi
215AC_LANG_POP([C++])
216AC_SUBST(EXPEDITE_CXXFLAGS)
217
201 218
202### Checks for linker characteristics 219### Checks for linker characteristics
203 220
diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am
index e2d21bc..badd2d9 100644
--- a/src/bin/Makefile.am
+++ b/src/bin/Makefile.am
@@ -77,7 +77,7 @@ image_blend_occlude3_very_many.c \
77poly_blend.c 77poly_blend.c
78 78
79expedite_CFLAGS = @WIN32_CFLAGS@ 79expedite_CFLAGS = @WIN32_CFLAGS@
80expedite_CXXFLAGS = -fno-rtti -fno-exceptions 80expedite_CXXFLAGS = @EXPEDITE_CXXFLAGS@
81expedite_LDADD = @EVAS_LIBS@ @SDL_LIBS@ @x_libs@ @gdi_libs@ @ddraw_libs@ @ddraw_16_libs@ @d3d_libs@ @wince_16_libs@ @glew_libs@ @DIRECTFB_LIBS@ @XCB_LIBS@ @EVIL_LIBS@ @quartz_libs@ -lm 81expedite_LDADD = @EVAS_LIBS@ @SDL_LIBS@ @x_libs@ @gdi_libs@ @ddraw_libs@ @ddraw_16_libs@ @d3d_libs@ @wince_16_libs@ @glew_libs@ @DIRECTFB_LIBS@ @XCB_LIBS@ @EVIL_LIBS@ @quartz_libs@ -lm
82expedite_LDFLAGS = @lt_enable_auto_import@ 82expedite_LDFLAGS = @lt_enable_auto_import@
83 83