From f0297fd65f04c243eeaea227b8fd1f7ab39307e0 Mon Sep 17 00:00:00 2001 From: Alain Dargelas Date: Wed, 18 Dec 2024 15:53:57 -0800 Subject: [PATCH 1/2] Backward trace lib --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 08132b77521..8122597be02 100644 --- a/Makefile +++ b/Makefile @@ -123,6 +123,11 @@ BISON ?= bison STRIP ?= strip AWK ?= awk +ifeq ($(OS), Linux) +LIBS += -ldw -lelf # SILIMATE: support for backward-cpp +CXXFLAGS += -DBACKWARD_HAS_DW # SILIMATE: support for backward-cpp +endif + ifeq ($(OS), Darwin) PLUGIN_LINKFLAGS += -undefined dynamic_lookup LINKFLAGS += -rdynamic From ad52b261a1a9540beee76133af6f940d8ab6428c Mon Sep 17 00:00:00 2001 From: Alain Dargelas Date: Wed, 18 Dec 2024 15:58:57 -0800 Subject: [PATCH 2/2] Remove libelf --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8122597be02..d4344a10ba8 100644 --- a/Makefile +++ b/Makefile @@ -123,8 +123,9 @@ BISON ?= bison STRIP ?= strip AWK ?= awk -ifeq ($(OS), Linux) -LIBS += -ldw -lelf # SILIMATE: support for backward-cpp + +ifeq ($(OS), Linux) +LIBS += -ldw # SILIMATE: support for backward-cpp CXXFLAGS += -DBACKWARD_HAS_DW # SILIMATE: support for backward-cpp endif