From 239ca9aa8022820d56798f06ea6836162a0892ea Mon Sep 17 00:00:00 2001 From: Maks Orlovich Date: Tue, 24 Nov 2015 15:16:06 -0500 Subject: [PATCH] Pass in -D_GLIBCXX_USE_CXX11_ABI=0, so people using gcc-5.x can use psol.a we built with 4.8 See issue 942 --- config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config b/config index 17a213886..594aa05a9 100644 --- a/config +++ b/config @@ -79,6 +79,12 @@ fi CFLAGS="$CFLAGS $FLAG_MARCH" +# For now, standardize on gcc-4.x ABI --- if we don't set this, people building +# with new gcc defaulting to gcc-5 C++11 ABI will have build trouble linking +# to our libpsol.a +# See https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html +CFLAGS="$CFLAGS -D_GLIBCXX_USE_CXX11_ABI=0" + case "$NGX_GCC_VER" in 4.8*) # On GCC 4.8 and above, -Wall enables -Wunused-local-typedefs. This breaks