make sure symbols are exported from main binary to allow loading modules
authorTzafrir Cohen <tzafrir@debian.org>
Thu, 10 Feb 2022 10:51:37 +0000 (10:51 +0000)
committerVictor Seva <vseva@debian.org>
Thu, 10 Feb 2022 10:51:37 +0000 (10:51 +0000)
Gbp-Pq: Name fix_export.patch

src/Makefile

index 23a5235700fe8fe9b58756e16e851c8c35250636..14cc0d7e50e209e92ae26ba5e798fc67efc0a0d7 100644 (file)
@@ -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)