make sure symbols are exported from main binary to allow loading modules
authorTzafrir Cohen <tzafrir@debian.org>
Fri, 29 Sep 2023 14:39:21 +0000 (16:39 +0200)
committerVictor Seva <vseva@debian.org>
Tue, 11 Mar 2025 13:38:30 +0000 (14:38 +0100)
Gbp-Pq: Name fix_export.patch

src/Makefile

index edad3d202f278ac2af23790f98a4be7042bac916..8de3eb26740df9b6332e9e585a9da3c937c93a5d 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)