From aab990488abee91d3ddfd8abdf4d70cbc5309bec Mon Sep 17 00:00:00 2001 From: Manuel Meraz Date: Mon, 21 Dec 2020 11:26:50 -0500 Subject: [PATCH] update makefiles to work with ubuntu 20.04 and GCC 10.2 --- benchmarks/histogram/Makefile | 4 ++-- libcoz/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmarks/histogram/Makefile b/benchmarks/histogram/Makefile index ef0e61c..d30838e 100644 --- a/benchmarks/histogram/Makefile +++ b/benchmarks/histogram/Makefile @@ -1,7 +1,7 @@ ROOT := ../.. TARGETS := histogram -LIBS := -lpthread -CFLAGS := -g -O2 +LIBS := -lpthread -Wl,--no-as-needed -ldl +CFLAGS := -g -O2 -gdwarf-3 include $(ROOT)/benchmark.mk diff --git a/libcoz/Makefile b/libcoz/Makefile index 0a2bbf9..4647fd2 100644 --- a/libcoz/Makefile +++ b/libcoz/Makefile @@ -1,7 +1,7 @@ ROOT := .. TARGETS := libcoz.so LIBS := -ldl -lrt -lpthread $(shell pkg-config --libs libelf++ libdwarf++) -CXXFLAGS := --std=c++0x -g -O2 -fPIC -I$(ROOT)/include -I. \ +CXXFLAGS := -gdwarf-3 --std=c++0x -g -O2 -fPIC -I$(ROOT)/include -I. \ $(shell pkg-config --cflags libelf++ libdwarf++) include $(ROOT)/common.mk