From 760e2fc3dc1cb62071e4d226dc02dea5d5b5feea Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Fri, 29 Sep 2023 16:39:21 +0200 Subject: [PATCH] make sure symbols are exported from main binary to allow loading modules Gbp-Pq: Name fix_export.patch --- src/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Makefile b/src/Makefile index 7c78f6ca..eb1a8c69 100644 --- a/src/Makefile +++ b/src/Makefile @@ -139,6 +139,8 @@ endif main_makefile=1 include Makefile.defs +$(MAIN_NAME): LDFLAGS += -Wl,--export-dynamic + static_modules_path=$(addprefix modules/, $(static_modules)) extra_sources=$(wildcard $(addsuffix /*.c, $(static_modules_path))) extra_objs=$(extra_sources:.c=.o) -- 2.30.2