File: fix_export.patch

package info (click to toggle)
kamailio 6.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 70,224 kB
  • sloc: ansic: 858,902; xml: 203,335; makefile: 9,296; sh: 8,928; sql: 8,571; yacc: 4,121; python: 3,086; perl: 2,955; java: 449; cpp: 289; javascript: 270; php: 258; ruby: 248; awk: 27
file content (22 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Tzafrir Cohen <tzafrir@debian.org>
Date: Fri, 29 Sep 2023 16:39:21 +0200
Subject: make sure symbols are exported from main binary to allow loading
 modules

---
 src/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Makefile b/src/Makefile
index edad3d2..8de3eb2 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -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)