[svn-commits] seanbright: branch seanbright/editline-update r255950 - in /team/seanbright/e...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Apr 2 14:51:41 CDT 2010


Author: seanbright
Date: Fri Apr  2 14:51:37 2010
New Revision: 255950

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=255950
Log:
Merged revisions 255906 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r255906 | kpfleming | 2010-04-02 14:57:58 -0400 (Fri, 02 Apr 2010) | 11 lines
  
  Allow symbol export filtering to work properly on platforms that have symbol prefixes.
  
  Some platforms prefix externally-visible symbols in object files generated
  from C sources (most commonly, '_' is the prefix). On these platforms,
  the existing symbol export filtering process ends up suppressing all the symbols
  that are supposed to be left visible. This patch allows the prefix string
  to be supplied to the top-level Makefile in the LINKER_SYMBOL_PREFIX variable,
  and then generates the linker scripts as required to include the prefix
  supplied.
........

Added:
    team/seanbright/editline-update/apps/app_voicemail.exports.in
      - copied unchanged from r255906, trunk/apps/app_voicemail.exports.in
    team/seanbright/editline-update/build_tools/make_linker_version_script
      - copied unchanged from r255906, trunk/build_tools/make_linker_version_script
    team/seanbright/editline-update/main/asterisk.exports.in
      - copied unchanged from r255906, trunk/main/asterisk.exports.in
    team/seanbright/editline-update/res/res_adsi.exports.in
      - copied unchanged from r255906, trunk/res/res_adsi.exports.in
    team/seanbright/editline-update/res/res_ael_share.exports.in
      - copied unchanged from r255906, trunk/res/res_ael_share.exports.in
    team/seanbright/editline-update/res/res_agi.exports.in
      - copied unchanged from r255906, trunk/res/res_agi.exports.in
    team/seanbright/editline-update/res/res_calendar.exports.in
      - copied unchanged from r255906, trunk/res/res_calendar.exports.in
    team/seanbright/editline-update/res/res_fax.exports.in
      - copied unchanged from r255906, trunk/res/res_fax.exports.in
    team/seanbright/editline-update/res/res_features.exports.in
      - copied unchanged from r255906, trunk/res/res_features.exports.in
    team/seanbright/editline-update/res/res_jabber.exports.in
      - copied unchanged from r255906, trunk/res/res_jabber.exports.in
    team/seanbright/editline-update/res/res_monitor.exports.in
      - copied unchanged from r255906, trunk/res/res_monitor.exports.in
    team/seanbright/editline-update/res/res_odbc.exports.in
      - copied unchanged from r255906, trunk/res/res_odbc.exports.in
    team/seanbright/editline-update/res/res_pktccops.exports.in
      - copied unchanged from r255906, trunk/res/res_pktccops.exports.in
    team/seanbright/editline-update/res/res_smdi.exports.in
      - copied unchanged from r255906, trunk/res/res_smdi.exports.in
    team/seanbright/editline-update/res/res_speech.exports.in
      - copied unchanged from r255906, trunk/res/res_speech.exports.in
Removed:
    team/seanbright/editline-update/apps/app_voicemail.exports
    team/seanbright/editline-update/main/asterisk.exports
    team/seanbright/editline-update/res/res_adsi.exports
    team/seanbright/editline-update/res/res_ael_share.exports
    team/seanbright/editline-update/res/res_agi.exports
    team/seanbright/editline-update/res/res_calendar.exports
    team/seanbright/editline-update/res/res_fax.exports
    team/seanbright/editline-update/res/res_features.exports
    team/seanbright/editline-update/res/res_jabber.exports
    team/seanbright/editline-update/res/res_monitor.exports
    team/seanbright/editline-update/res/res_odbc.exports
    team/seanbright/editline-update/res/res_pktccops.exports
    team/seanbright/editline-update/res/res_smdi.exports
    team/seanbright/editline-update/res/res_speech.exports
Modified:
    team/seanbright/editline-update/   (props changed)
    team/seanbright/editline-update/Makefile
    team/seanbright/editline-update/Makefile.moddir_rules
    team/seanbright/editline-update/Makefile.rules
    team/seanbright/editline-update/addons/   (props changed)
    team/seanbright/editline-update/apps/   (props changed)
    team/seanbright/editline-update/bridges/   (props changed)
    team/seanbright/editline-update/cdr/   (props changed)
    team/seanbright/editline-update/cel/   (props changed)
    team/seanbright/editline-update/channels/   (props changed)
    team/seanbright/editline-update/codecs/   (props changed)
    team/seanbright/editline-update/formats/   (props changed)
    team/seanbright/editline-update/funcs/   (props changed)
    team/seanbright/editline-update/main/   (props changed)
    team/seanbright/editline-update/main/Makefile
    team/seanbright/editline-update/pbx/   (props changed)
    team/seanbright/editline-update/res/   (props changed)
    team/seanbright/editline-update/tests/   (props changed)
    team/seanbright/editline-update/utils/   (props changed)

Propchange: team/seanbright/editline-update/
------------------------------------------------------------------------------
    automerge = sweet tea

Propchange: team/seanbright/editline-update/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Fri Apr  2 14:51:37 2010
@@ -1,1 +1,1 @@
-/trunk:1-255886
+/trunk:1-255949

Modified: team/seanbright/editline-update/Makefile
URL: http://svnview.digium.com/svn/asterisk/team/seanbright/editline-update/Makefile?view=diff&rev=255950&r1=255949&r2=255950
==============================================================================
--- team/seanbright/editline-update/Makefile (original)
+++ team/seanbright/editline-update/Makefile Fri Apr  2 14:51:37 2010
@@ -174,6 +174,14 @@
 HTTP_DOCSDIR=/var/www/html
 # Determine by a grep 'ScriptAlias' of your Apache httpd.conf file
 HTTP_CGIDIR=/var/www/cgi-bin
+
+# If your platform's linker expects a prefix on symbols generated from compiling C
+# source files, set LINKER_SYMBOL_PREFIX to that value. On some systems, exported symbols
+# from C source files are prefixed with '_', for example. If this value is not set
+# properly, the linker scripts that live in the '*.exports' files in various places
+# in this tree will unintentionally suppress symbols that should be visible
+# in the final binary objects.
+LINKER_SYMBOL_PREFIX=
 
 # Uncomment this to use the older DSP routines
 #_ASTCFLAGS+=-DOLD_DSP_ROUTINES

Modified: team/seanbright/editline-update/Makefile.moddir_rules
URL: http://svnview.digium.com/svn/asterisk/team/seanbright/editline-update/Makefile.moddir_rules?view=diff&rev=255950&r1=255949&r2=255950
==============================================================================
--- team/seanbright/editline-update/Makefile.moddir_rules (original)
+++ team/seanbright/editline-update/Makefile.moddir_rules Fri Apr  2 14:51:37 2010
@@ -129,6 +129,7 @@
 dist-clean::
 	rm -f .*.moduleinfo .moduleinfo
 	rm -f .*.makeopts .makeopts
+	rm -f *.exports
 
 .%.moduleinfo: %.c
 	@echo "<member name=\"$*\" displayname=\"$(shell $(GREP) -e AST_MODULE_INFO $< | head -n 1 | cut -d '"' -f 2)\" remove_on_change=\"$(SUBDIR)/$*.o $(SUBDIR)/$*.so\">" > $@

Modified: team/seanbright/editline-update/Makefile.rules
URL: http://svnview.digium.com/svn/asterisk/team/seanbright/editline-update/Makefile.rules?view=diff&rev=255950&r1=255949&r2=255950
==============================================================================
--- team/seanbright/editline-update/Makefile.rules (original)
+++ team/seanbright/editline-update/Makefile.rules Fri Apr  2 14:51:37 2010
@@ -3,7 +3,7 @@
 # 
 # Makefile rules
 #
-# Copyright (C) 2006-2008, Digium, Inc.
+# Copyright (C) 2006-2010, Digium, Inc.
 #
 # Kevin P. Fleming <kpfleming at digium.com>
 #
@@ -117,10 +117,16 @@
 	$(CMD_PREFIX) $(CXX) -o $@ -E $< $(MAKE_DEPS) $(CXX_CFLAGS)
 
 %.so: %.o
+ifeq ($(GNU_LD),1)
+	$(CMD_PREFIX) $(ASTTOPDIR)/build_tools/make_linker_version_script $* $(LINKER_SYMBOL_PREFIX)
+endif
 	$(ECHO_PREFIX) echo "   [LD] $^ -> $@"
 	$(CMD_PREFIX) $(CC) $(STATIC_BUILD) -o $@ $(CC_LDFLAGS_SO) $^ $(CC_LIBS)
 
 %.so: %.oo
+ifeq ($(GNU_LD),1)
+	$(CMD_PREFIX) $(ASTTOPDIR)/build_tools/make_linker_version_script $* $(LINKER_SYMBOL_PREFIX)
+endif
 	$(ECHO_PREFIX) echo "   [LDXX] $^ -> $@"
 	$(CMD_PREFIX) $(CXX) $(STATIC_BUILD) -o $@ $(CXX_LDFLAGS_SO) $^ $(CXX_LIBS)
 

Propchange: team/seanbright/editline-update/addons/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -7,5 +7,6 @@
 *.moduleinfo
 *.s
 *.so
+*.exports
 modules.link
 

Propchange: team/seanbright/editline-update/apps/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -7,4 +7,5 @@
 *.moduleinfo
 *.s
 *.so
+*.exports
 modules.link

Propchange: team/seanbright/editline-update/bridges/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -7,5 +7,6 @@
 *.moduleinfo
 *.s
 *.so
+*.exports
 modules.link
 

Propchange: team/seanbright/editline-update/cdr/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -7,4 +7,5 @@
 *.moduleinfo
 *.s
 *.so
+*.exports
 modules.link

Propchange: team/seanbright/editline-update/cel/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -7,4 +7,5 @@
 *.moduleinfo
 *.s
 *.so
+*.exports
 modules.link

Propchange: team/seanbright/editline-update/channels/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -9,4 +9,5 @@
 *.oo
 *.s
 *.so
+*.exports
 modules.link

Propchange: team/seanbright/editline-update/codecs/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -7,4 +7,5 @@
 *.moduleinfo
 *.s
 *.so
+*.exports
 modules.link

Propchange: team/seanbright/editline-update/formats/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -7,4 +7,5 @@
 *.moduleinfo
 *.s
 *.so
+*.exports
 modules.link

Propchange: team/seanbright/editline-update/funcs/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -7,4 +7,5 @@
 *.moduleinfo
 *.s
 *.so
+*.exports
 modules.link

Propchange: team/seanbright/editline-update/main/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -1,6 +1,6 @@
-*.i
+'*.i
 *.s
+*.d
+*.exports
 asterisk
-*.d
 version.c
-editline-build

Modified: team/seanbright/editline-update/main/Makefile
URL: http://svnview.digium.com/svn/asterisk/team/seanbright/editline-update/main/Makefile?view=diff&rev=255950&r1=255949&r2=255950
==============================================================================
--- team/seanbright/editline-update/main/Makefile (original)
+++ team/seanbright/editline-update/main/Makefile Fri Apr  2 14:51:37 2010
@@ -171,7 +171,7 @@
 
 $(OBJS): _ASTCFLAGS+=-DAST_MODULE=\"core\"
 
-$(MAIN_TGT): $(OBJS) $(LIBEDIT_OBJ) db1-ast/libdb1.a $(AST_EMBED_LDSCRIPTS) asterisk.exports
+$(MAIN_TGT): $(OBJS) $(LIBEDIT_OBJ) db1-ast/libdb1.a $(AST_EMBED_LDSCRIPTS)
 	@$(CC) -c -o buildinfo.o $(_ASTCFLAGS) buildinfo.c $(ASTCFLAGS)
 	$(ECHO_PREFIX) echo "   [LD] $(OBJS) editline/src/.libs/libedit.a db1-ast/libdb1.a $(AST_EMBED_LDSCRIPTS) -> $@"
 ifneq ($(findstring chan_h323,$(MENUSELECT_CHANNELS)),)
@@ -180,10 +180,16 @@
 	$(CMD_PREFIX) $(CXX) $(STATIC_BUILD) -o $@ $(ASTLINK) $(AST_EMBED_LDFLAGS) $(_ASTLDFLAGS) $(ASTLDFLAGS) $(H323LDFLAGS) $(OBJS) $(LIBEDIT_OBJ) db1-ast/libdb1.a $(AST_EMBED_LDSCRIPTS) buildinfo.o $(AST_LIBS) $(AST_EMBED_LIBS) $(H323LDLIBS) $(GMIMELDFLAGS) $(LIBEDIT_LIB)
 endif
 
+ifeq ($(GNU_LD),1)
+$(MAIN_TGT): asterisk.exports
+asterisk.exports: asterisk.exports.in
+	$(CMD_PREFIX) $(ASTTOPDIR)/build_tools/make_linker_version_script asterisk $(LINKER_SYMBOL_PREFIX)
+endif
+
 clean::
 	rm -f asterisk
 	rm -f db1-ast/.*.d
-	@if [ -d editline-build ]; then rm -rf editline-build ; fi
+	rm -f asterisk.exports
 	@if [ -f editline/Makefile ]; then $(MAKE) -C editline distclean ; fi
 	@$(MAKE) -C db1-ast clean
 	@$(MAKE) -C stdtime clean

Propchange: team/seanbright/editline-update/pbx/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -7,4 +7,5 @@
 *.moduleinfo
 *.s
 *.so
+*.exports
 modules.link

Propchange: team/seanbright/editline-update/res/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -7,4 +7,5 @@
 *.moduleinfo
 *.s
 *.so
+*.exports
 modules.link

Propchange: team/seanbright/editline-update/tests/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -7,4 +7,5 @@
 *.moduleinfo
 *.s
 *.so
+*.exports
 modules.link

Propchange: team/seanbright/editline-update/utils/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Apr  2 14:51:37 2010
@@ -1,6 +1,7 @@
 *.d
 *.i
 *.s
+*.exports
 aelbison.c
 aelparse
 aelparse.c




More information about the svn-commits mailing list