From 7dda91f0cbacdb0229be0adc5a87cd6dece11cf3 Mon Sep 17 00:00:00 2001
From: Marcel Loose <loose@astron.nl>
Date: Thu, 24 Apr 2014 15:38:57 +0000
Subject: [PATCH] Task #1254: Override the now default C++ debug compile flag
 -D_GLIBCXX_DEBUG (issue #5540) for lhn001, because Python (or Boost.Python)
 barfs on it with a '*** glibc detected *** python: free(): invalid pointer'

---
 CMake/variants/variants.lhn001 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMake/variants/variants.lhn001 b/CMake/variants/variants.lhn001
index 70a36aa4450..1b2617ece3e 100644
--- a/CMake/variants/variants.lhn001
+++ b/CMake/variants/variants.lhn001
@@ -15,3 +15,7 @@ set(CTEST_CUSTOM_WARNING_EXCEPTION
   "/log4cxx/helpers/objectptr.h:[0-9]+: warning: base class"
   "/log4cxx/helpers/objectptr.h:[0-9]+: warning: dereferencing type-punned pointer"
 )
+
+# Drop the now default C++ debug compile flag -D_GLIBCXX_DEBUG, because Python
+# (or Boost.Python) barfs on it (glibc detected: python free(): invalid pointer)
+set(GNU_CXX_FLAGS_DEBUG  "-g")
-- 
GitLab