mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
8
Makefile
8
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
|
||||
|
||||
|
Reference in New Issue
Block a user