make sure symbols are exported from main binary to allow loading modules
authorTzafrir Cohen <tzafrir@debian.org>
Tue, 31 Jan 2023 19:10:56 +0000 (19:10 +0000)
committerVictor Seva <vseva@debian.org>
Tue, 31 Jan 2023 19:10:56 +0000 (19:10 +0000)
Gbp-Pq: Name fix_export.patch

src/Makefile

index f2fa93c22306aaa8332502344a82d040c98bbcf2..b11115378b8d4359e31c0f259c52103303272fd6 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)