You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/debian/patches/fix_export.patch

15 lines
437 B

Description: make sure symbols are exported from main binary to allow loading modules
Author: Tzafrir Cohen <tzafrir@debian.org>
--- a/Makefile
+++ b/Makefile
@@ -200,6 +200,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)