summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-07-16 04:45:33 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-07-16 04:45:33 +0000
commit0ab4420d66fd355d2b6434d43e72293ef2800cad (patch)
tree72266dc4ed9ed204bec5b582f99fdb1774c06b3a /main
parente990f89a0e9cdaef79eee85a57170935ef7bb691 (diff)
Fix build on FreeBSD
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@276871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-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/