From: Tzafrir Cohen Date: Tue, 25 Oct 2022 21:40:36 +0000 (+0100) Subject: make sure symbols are exported from main binary to allow loading modules X-Git-Tag: archive/raspbian/5.6.2-1+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dc2f675a3b7b8a4ca79235068bf8b4438dbefb52;p=kamailio.git make sure symbols are exported from main binary to allow loading modules Gbp-Pq: Name fix_export.patch --- diff --git a/src/Makefile b/src/Makefile index 40def342..3c8dcdaf 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)