mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-11 13:22:33 +00:00
lx_emul_common: prevent override of CC_OPT_$(1)
This allows for extending such compilation unit specific options for down by users of the library. Issue #4500.
This commit is contained in:
parent
d324331325
commit
e313059dd5
@ -135,7 +135,7 @@ CUSTOM_TARGET_DEPS += $(TARGET_SOURCE_LIST)
|
||||
|
||||
# Define per-compilation-unit CC_OPT defines needed by MODULE* macros in Linux
|
||||
define CC_OPT_LX_RULES =
|
||||
CC_OPT_$(1) = -DKBUILD_MODFILE='"$(1)"' -DKBUILD_BASENAME='"$(notdir $(1))"' -DKBUILD_MODNAME='"$(notdir $(1))"'
|
||||
CC_OPT_$(1) += -DKBUILD_MODFILE='"$(1)"' -DKBUILD_BASENAME='"$(notdir $(1))"' -DKBUILD_MODNAME='"$(notdir $(1))"'
|
||||
endef
|
||||
|
||||
$(foreach file,$(LX_SRC),$(eval $(call CC_OPT_LX_RULES,$(file:%.c=%))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user