mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-06 01:51:14 +00:00
more optimizations for embedded systems:
when LOADABLE_MODULES is off, don't export symbols from the main binary when LOADABLE_MODULES is off, and the compiler/linker support it, strip out code not used in the final binary git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -62,7 +62,9 @@ endif
|
||||
|
||||
ifneq ($(findstring darwin,$(OSARCH)),)
|
||||
AST_LIBS+=-lresolv
|
||||
ASTLINK=-Wl,-dynamic
|
||||
ifneq ($(findstring LOADABLE_MODULES,$(MENUSELECT_CFLAGS)),)
|
||||
ASTLINK=-Wl,-dynamic
|
||||
endif
|
||||
# Mac on Intel CoreDuo does not need poll compatibility layer
|
||||
ifneq ($(PROC),i386)
|
||||
OBJS+=poll.o
|
||||
@@ -70,7 +72,11 @@ ifneq ($(findstring darwin,$(OSARCH)),)
|
||||
endif
|
||||
else
|
||||
# These are used for all but Darwin
|
||||
ASTLINK=-Wl,-E
|
||||
ifneq ($(findstring LOADABLE_MODULES,$(MENUSELECT_CFLAGS)),)
|
||||
ASTLINK+=-Wl,--export-dynamic
|
||||
else
|
||||
ASTLINK+=${GC_LDFLAGS}
|
||||
endif
|
||||
ifneq ($(findstring BSD,$(OSARCH)),)
|
||||
LDFLAGS+=-L/usr/local/lib
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user