]> git.lyx.org Git - lyx.git/commitdiff
Do not honor stdlib-debug when c++library is not gcc's libstdc++
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 24 Oct 2020 16:00:55 +0000 (18:00 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 25 Oct 2020 11:45:04 +0000 (12:45 +0100)
Actually the real difference is that it does not complain about system
boost any more when LLVM's libc++ is used.

config/lyxinclude.m4

index b61ea59ac5c26d9331f68e50f3fa9beb465cf0d4..0e9b426061af5f7d8dc276f24ec8679117c08450 100644 (file)
@@ -422,14 +422,14 @@ if test x$GXX = xyes; then
   if test x$enable_stdlib_debug = xyes ; then
     dnl FIXME: for clang/libc++, one should define _LIBCPP_DEBUG2=0
     dnl See http://clang-developers.42468.n3.nabble.com/libc-debug-mode-td3336742.html
-    case $gxx_version in
-      *)
+    if test x$lyx_cv_lib_stdcxx = xyes ; then
         lyx_flags="$lyx_flags stdlib-debug"
        AC_DEFINE(_GLIBCXX_DEBUG, 1, [libstdc++ debug mode])
        AC_DEFINE(_GLIBCXX_DEBUG_PEDANTIC, 1, [libstdc++ pedantic debug mode])
        AC_SUBST(STDLIB_DEBUG, "-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC")
-        ;;
-    esac
+    else
+       enable_stdlib_debug=no
+    fi
   fi
 fi