commit d8505bab0df60a6224794637dd47f7afd2e4dbfd
parent 99a1581e19afd58b79a5eb8d97445142aed81a06
Author: Joris Vink <joris@coders.se>
Date: Thu, 17 Feb 2022 14:59:36 +0200
Always add -rdynamic to LDFLAGS.
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -36,14 +36,16 @@ CFLAGS+=-Wsign-compare -Iinclude/kore -I$(OBJDIR) -std=c99 -pedantic
CFLAGS+=-Wtype-limits -fno-common
CFLAGS+=-DPREFIX='"$(PREFIX)"' -fstack-protector-all
+LDFLAGS+=-rdynamic
+
ifeq ("$(TLS_BACKEND)", "openssl")
S_SRC+=src/keymgr_openssl.c
ifneq ("$(OPENSSL_PATH)", "")
CFLAGS+=-I$(OPENSSL_PATH)/include
- LDFLAGS+=-rdynamic -L$(OPENSSL_PATH)/lib -lssl -l$(KORE_CRYPTO)
+ LDFLAGS+=-L$(OPENSSL_PATH)/lib -lssl -l$(KORE_CRYPTO)
else
- LDFLAGS+=-rdynamic -lssl -l$(KORE_CRYPTO)
+ LDFLAGS+=-lssl -l$(KORE_CRYPTO)
endif
endif