From f3663c636bc34653606ff2469b86b9254725962d Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Fri, 11 Nov 2016 13:46:35 +0000 Subject: [PATCH] Force the pre-C++11 ABI when compiling the parser library on Linux platforms. Hopefully fixes a long-standing compatibility issue caused by the C++11 ABI switch on GCC5. Fixes https://github.com/mono/CppSharp/issues/655. --- src/CppParser/premake5.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CppParser/premake5.lua b/src/CppParser/premake5.lua index 49cc7e1e..f72f3066 100644 --- a/src/CppParser/premake5.lua +++ b/src/CppParser/premake5.lua @@ -20,7 +20,10 @@ project "CppSharp.CppParser" if os.getenv("APPVEYOR") then linkoptions { "/ignore:4099" } -- LNK4099: linking object as if no debug info - end + end + + configuration "linux" + defines { "_GLIBCXX_USE_CXX11_ABI=0" } configuration "*"