summaryrefslogtreecommitdiff
path: root/main/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'main/Makefile')
-rw-r--r--main/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/Makefile b/main/Makefile
index 1ec018bb3..8175f1e7f 100644
--- a/main/Makefile
+++ b/main/Makefile
@@ -95,7 +95,10 @@ ifneq ($(findstring USE_HOARD_ALLOCATOR,$(MENUSELECT_CFLAGS)),)
endif
ifeq ($(GNU_LD),1)
-ASTLINK+=-Wl,--version-script,asterisk.exports,--dynamic-list,asterisk.dynamics
+ASTLINK+=-Wl,--version-script,asterisk.exports
+ ifeq ($(HAVE_DYNAMIC_LIST),1)
+ ASTLINK+=-Wl,--dynamic-list,asterisk.dynamics
+ endif
endif
CHECK_SUBDIR: # do nothing, just make sure that we recurse in the subdir/