From 33c4a808273951497f03d82d0e6c69828d3502e6 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Fri, 10 Jul 2015 10:38:30 -0400 Subject: [PATCH] Bug 1123386 - Part 2: Temporarily relax the libstdc++ symbol version requirements for Linux static analysis builds; r=glandium --- build/clang-plugin/Makefile.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/clang-plugin/Makefile.in b/build/clang-plugin/Makefile.in index c17933fe80b..51b31ef4f69 100644 --- a/build/clang-plugin/Makefile.in +++ b/build/clang-plugin/Makefile.in @@ -18,3 +18,10 @@ DSO_LDOPTS := -shared # correctly. Note that the binary produced here is a host tool and doesn't need # to be distributed. MACOSX_DEPLOYMENT_TARGET := + +# Temporarily relax the requirements for libstdc++ symbol versions on static +# analysis plugin in order to use a recent clang by accepting libstdc++ from +# gcc 4.4.0 (GLIBCXX_3.4.11). +ifdef CHECK_STDCXX +CHECK_STDCXX = $(call CHECK_SYMBOLS,$(1),GLIBCXX,libstdc++,v[1] > 3 || (v[1] == 3 && v[2] == 4 && v[3] > 11)) +endif