diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-02 18:57:58 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-02 18:57:58 +0000 |
commit | a321328986a6b0ae2a6988326fdd12d44b4dbd75 (patch) | |
tree | 617eb61593a42ffe9e08c245fa183358073bbf84 /Makefile | |
parent | f98d7537857848e6657487294a85995076177c47 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@255906 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |