From 2be88e05c043e8abc1b6a3c94c4699859a7adf68 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Fri, 2 Apr 2010 18:57:58 +0000 Subject: 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. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@255906 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6e292718c..323b20f06 100644 --- a/Makefile +++ b/Makefile @@ -175,6 +175,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 -- cgit v1.2.3