[asterisk-commits] tilghman: trunk r231439 - in /trunk: Makefile.rules main/asterisk.dynamics

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 30 10:53:15 CST 2009


Author: tilghman
Date: Mon Nov 30 10:53:10 2009
New Revision: 231439

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=231439
Log:
Export dynamic (weak-linked) symbols correctly.
(closes issue #15193)
 Reported by: eliel
 Patches: 
       20091111__issue15193.diff.txt uploaded by tilghman (license 14)

Added:
    trunk/main/asterisk.dynamics   (with props)
Modified:
    trunk/Makefile.rules

Modified: trunk/Makefile.rules
URL: http://svnview.digium.com/svn/asterisk/trunk/Makefile.rules?view=diff&rev=231439&r1=231438&r2=231439
==============================================================================
--- trunk/Makefile.rules (original)
+++ trunk/Makefile.rules Mon Nov 30 10:53:10 2009
@@ -49,7 +49,10 @@
 CXX_CFLAGS=$(PTHREAD_CFLAGS) $(filter-out -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(AST_DECLARATION_AFTER_STATEMENT),$(_ASTCFLAGS) $(ASTCFLAGS))
 
 ifeq ($(GNU_LD),1)
-SO_SUPPRESS_SYMBOLS=-Wl,--version-script,$(if $(wildcard $(subst .so,.exports,$@)),$(subst .so,.exports,$@),$(ASTTOPDIR)/default.exports)
+SO_SUPPRESS_SYMBOLS=-Wl,--version-script,$(if $(wildcard $(subst .so,.exports,$@)),$(subst .so,.exports,$@),$(ASTTOPDIR)/default.exports),--warn-common
+ifneq ($(wildcard $(subst .so,.dynamics,$@)),)
+SO_SUPPRESS_SYMBOLS+=-Wl,--dynamic-list,$(subst .so,.dynamics,$@)
+endif
 endif
 
 CC_LDFLAGS_SO=$(PTHREAD_CFLAGS) $(_ASTLDFLAGS) $(SOLINK) $(SO_SUPPRESS_SYMBOLS) $(ASTLDFLAGS)

Added: trunk/main/asterisk.dynamics
URL: http://svnview.digium.com/svn/asterisk/trunk/main/asterisk.dynamics?view=auto&rev=231439
==============================================================================
--- trunk/main/asterisk.dynamics (added)
+++ trunk/main/asterisk.dynamics Mon Nov 30 10:53:10 2009
@@ -1,0 +1,6 @@
+{
+	ast_agi_*;
+	ast_pktccops_*;
+	ast_smdi_*;
+	ast_monitor_*;
+};

Propchange: trunk/main/asterisk.dynamics
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/main/asterisk.dynamics
------------------------------------------------------------------------------
    svn:keywords = Revision Author Id Date

Propchange: trunk/main/asterisk.dynamics
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list