]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fix bug in CXXFLAGS tweak.
authorWayne Davison <wayne@opencoder.net>
Tue, 16 Jun 2020 16:14:28 +0000 (09:14 -0700)
committerWayne Davison <wayne@opencoder.net>
Tue, 16 Jun 2020 16:14:28 +0000 (09:14 -0700)
configure.ac

index bd43c3f6d14982ec9c8accc1c9209dce4aeec043..baf1a1bc815c332b9f231c658b7e7c4ffa71f07c 100644 (file)
@@ -177,17 +177,14 @@ if test x"$SIMD" != x""; then
     AC_MSG_RESULT([yes ($SIMD)])
        AC_DEFINE(HAVE_SIMD, 1, [Define to 1 to enable SIMD optimizations])
     SIMD=`echo "$SIMD" | sed -e 's/[[^ ]]\+/$(SIMD_&)/g'`
+    # We only use g++ for its target attribute dispatching, disable unneeded bulky features
+    CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti"
 else
     AC_MSG_RESULT(no)
 fi
 
 AC_SUBST(SIMD)
 
-# We only use g++ for its target attribute dispatching, disable unneeded bulky features
-if test x"$CXXOBJ" != x""; then
-    CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti"
-fi
-
 # arrgh. libc in some old debian version screwed up the largefile
 # stuff, getting byte range locking wrong
 AC_CACHE_CHECK([for broken largefile support],rsync_cv_HAVE_BROKEN_LARGEFILE,[