diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-07-15 16:40:05 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-07-15 16:40:05 +0000 |
commit | 396ef6f9e7447e443c7dcd491a7ae47eff0e9877 (patch) | |
tree | 6710f23464cdc313d919ab803aae67e1d4f9b631 /Makefile.moddir_rules | |
parent | ad2a107e334979a7fe5fe89f2cb895fb9c47b9c4 (diff) |
use LDFLAGS and LIBS properly, and allow dependencies to provide LDFLAGS if needed (although none do today)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile.moddir_rules')
-rw-r--r-- | Makefile.moddir_rules | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules index e8a239fbe..15beec313 100644 --- a/Makefile.moddir_rules +++ b/Makefile.moddir_rules @@ -25,12 +25,14 @@ endef define module_so_o_template $(1).so: $(1).o -$(1).so: LDFLAGS+=$(foreach dep,$(MENUSELECT_DEPENDS_$(1)),$$(value $(dep)_LIB)) +$(1).so: LIBS+=$(foreach dep,$(MENUSELECT_DEPENDS_$(1)),$$(value $(dep)_LIB)) +$(1).so: LDFLAGS+=$(foreach dep,$(MENUSELECT_DEPENDS_$(1)),$$(value $(dep)_LDFLAGS)) endef define module_so_oo_template $(1).so: $(1).oo -$(1).so: LDFLAGS+=$(foreach dep,$(MENUSELECT_DEPENDS_$(1)),$$(value $(dep)_LIB)) +$(1).so: LIBS+=$(foreach dep,$(MENUSELECT_DEPENDS_$(1)),$$(value $(dep)_LIB)) +$(1).so: LDFLAGS+=$(foreach dep,$(MENUSELECT_DEPENDS_$(1)),$$(value $(dep)_LDFLAGS)) endef $(foreach mod,$(filter-out $(CC_MODS),$(SELECTED_MODS)),$(eval $(call module_o_c_template,$(mod)))) |