From b6b82f33bd035a29c788fae994a79ccfd20c2637 Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Fri, 8 Nov 2024 18:08:02 +0000 Subject: [PATCH] Update Makefile --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 743dc6fef..ac989c1cc 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,8 @@ ifneq '' '$(findstring clang,$(COMPILER_VERSION))' else ifneq '' '$(findstring g++,$(COMPILER_VERSION))' COMPILER_NAME := GCC CXXFLAGS += -flto=auto + # for std::stacktrace + LDFLAGS += -lstdc++exp else ifneq '' '$(findstring nvc++,$(COMPILER_VERSION))' COMPILER_NAME := NVHPC else @@ -192,8 +194,8 @@ ifneq ($(MAX_NODE_SIZE),) endif ifeq ($(TESTMODE),ON) - CXXFLAGS += -DTESTMODE=true -D_LIBCPP_DEBUG=0 -rdynamic - LDFLAGS += -lstdc++exp + CXXFLAGS += -DTESTMODE=true -D_LIBCPP_DEBUG=0 + # CXXFLAGS += -rdynamic CXXFLAGS += -D_GLIBCXX_ASSERTIONS # CXXFLAGS += -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_BACKTRACE=1