From aa7b32d1750b732b45f5fe12a58308cb047ec959 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Sat, 26 Aug 2006 16:45:35 +0000 Subject: 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 --- Makefile.moddir_rules | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.moddir_rules') 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 -- cgit v1.2.3