tool/dde_linux/create_dummies: preserve env

Instead of resetting the whole environment only remove the TARGET
variable to make GNU Make 4.4 happy.

Fix genodelabs/genode#5084
This commit is contained in:
Stefan Kalkowski 2024-01-04 15:29:37 +01:00 committed by Christian Helmuth
parent c2e1013ad4
commit fc15a164ce

View File

@ -154,10 +154,10 @@ endif # LINUX_KERNEL_DIR specified
#
# Collect undefined references for target
#
# use 'env - ' to reset environment, especially TARGET because it will be used by Genode's build sytem
# Remove TARGET variable from environment, because it will be used by Genode's build sytem
# during linking later on and not point to the actual build TARGET (GNU Make 4.4+)
#
UNDEF_REFS := $(sort $(subst `,,$(subst ',,$(shell env - PATH=$(PATH) make -C $(BUILD_DIR) $(TARGET) 2>&1 | grep " undefined reference to " | sed -e "s/.* reference to //"))))
UNDEF_REFS := $(sort $(subst `,,$(subst ',,$(shell env -u TARGET make -C $(BUILD_DIR) $(TARGET) 2>&1 | grep " undefined reference to " | sed -e "s/.* reference to //"))))
define print_file_header
echo "/*" > $(2);