From e313059dd554bb41255c8055740300c1765caa8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Tue, 3 May 2022 18:05:10 +0200 Subject: [PATCH] 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. --- repos/dde_linux/lib/import/import-lx_emul_common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/dde_linux/lib/import/import-lx_emul_common.inc b/repos/dde_linux/lib/import/import-lx_emul_common.inc index 4bfe878cef..9d138cc971 100644 --- a/repos/dde_linux/lib/import/import-lx_emul_common.inc +++ b/repos/dde_linux/lib/import/import-lx_emul_common.inc @@ -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=%))))