diff options
author | Corey Farrell <git@cfware.com> | 2015-05-04 15:26:37 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2015-05-04 20:47:01 -0400 |
commit | a8bfa9e10445744581d18819c64729844ae837fb (patch) | |
tree | ea238e819c3440409df3027cd3c703394753c015 /Makefile.moddir_rules | |
parent | ce21776aae2866f3c611f172c4d38fb53e806dcf (diff) |
Modules: Make ast_module_info->self available to auxiliary sources.
ast_module_info->self is often needed to register items with the core. Many
modules have ad-hoc code to make this pointer available to auxiliary sources.
This change updates the module build process to make the needed information
available to all sources in a module.
ASTERISK-25056 #close
Reported by: Corey Farrell
Change-Id: I18c8cd58fbcb1b708425f6757becaeca9fa91815
Diffstat (limited to 'Makefile.moddir_rules')
-rw-r--r-- | Makefile.moddir_rules | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules index d2964e374..e7022822d 100644 --- a/Makefile.moddir_rules +++ b/Makefile.moddir_rules @@ -60,7 +60,11 @@ endif # is used to collect the required flags for a module... which can # then be used any place they are required. -MOD_ASTCFLAGS=-DAST_MODULE=\"$(1)\" $(MENUSELECT_OPTS_$(1):%=-D%) $(foreach dep,$(MENUSELECT_DEPENDS_$(1)),$(value $(dep)_INCLUDE)) +MOD_ASTCFLAGS=\ + -DAST_MODULE=\"$(1)\" \ + -DAST_MODULE_SELF_SYM=__internal_$(1)_self \ + $(MENUSELECT_OPTS_$(1):%=-D%) \ + $(foreach dep,$(MENUSELECT_DEPENDS_$(1)),$(value $(dep)_INCLUDE)) define MOD_ADD_SOURCE $$(if $$(filter $(1),$$(EMBEDDED_MODS)),modules.link,$(1).so): $$(subst $(3),$(5),$(2)) |