diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-26 16:45:35 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-26 16:45:35 +0000 |
commit | da5141501bbaee1750bd85d88dd86d8b5acbb040 (patch) | |
tree | 9a2fde65d5e68d945737adfbf3732993de3886b5 /Makefile.moddir_rules | |
parent | cdffda3e50f00b25b011a6d8e16b5eddee0b6d23 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@41166 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile.moddir_rules')
-rw-r--r-- | Makefile.moddir_rules | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules index 8e9c082fe..0963cedfc 100644 --- a/Makefile.moddir_rules +++ b/Makefile.moddir_rules @@ -15,6 +15,10 @@ ifneq ($(findstring MALLOC_DEBUG,$(MENUSELECT_CFLAGS)),) CFLAGS+=-include $(ASTTOPDIR)/include/asterisk/astmm.h endif +ifeq ($(findstring LOADABLE_MODULES,$(MENUSELECT_CFLAGS)),) + CFLAGS+=${GC_CFLAGS} +endif + ifneq ($(findstring STATIC_BUILD,$(MENUSELECT_CFLAGS)),) STATIC_BUILD=-static endif |