libre: fix ld argument
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 26 Nov 2017 21:09:40 +0000 (22:09 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 26 Nov 2017 21:09:55 +0000 (22:09 +0100)
When using the default Build/Compile routine $LD is set to the actual
linker, so libre's build system is not using ld indirectly via the
compiler anymore. But it feeds -rdynamic to ld instead of
--export-dynamic. Fix that with this patch.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libs/re/patches/003-fix-linker-call.patch [new file with mode: 0644]

diff --git a/libs/re/patches/003-fix-linker-call.patch b/libs/re/patches/003-fix-linker-call.patch
new file mode 100644 (file)
index 0000000..263bbb2
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/mk/re.mk
++++ b/mk/re.mk
+@@ -235,7 +235,7 @@ ifeq ($(OS),linux)
+       LFLAGS          += -fPIC
+       SH_LFLAGS       += -shared
+       MOD_LFLAGS      +=
+-      APP_LFLAGS      += -rdynamic
++      APP_LFLAGS      += --export-dynamic
+       AR              := ar
+       AFLAGS          := crD
+ endif