From: Tzafrir Cohen Date: Thu, 10 Feb 2022 10:51:37 +0000 (+0000) Subject: make sure symbols are exported from main binary to allow loading modules X-Git-Tag: archive/raspbian/5.5.4-1+rpi1~1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=469fb8eb1cc12758300cb26f290df4a2fa43c75f;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 23a52357..14cc0d7e 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)