Package: kamailio / 5.2.1-1

fix_export.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: make sure symbols are exported from main binary to allow loading modules
Author: Tzafrir Cohen <tzafrir@debian.org>

--- a/src/Makefile
+++ b/src/Makefile
@@ -139,6 +139,8 @@
 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)