aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-16 04:45:33 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-16 04:45:33 +0000
commit9e41a69ae825595ae8db890ed5ce1ccdfb778443 (patch)
tree72266dc4ed9ed204bec5b582f99fdb1774c06b3a /main
parent34a5c533f35e7b88c7da713e5186c42381324fa1 (diff)
Fix build on FreeBSD
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@276871 f38db490-d61c-443f-a65b-d21fe96a405b
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/