log.mk: fix abort on error when STDOUT=1

See: https://bugzilla.altlinux.org/48863
This commit is contained in:
Anton Midyukov 2023-12-22 23:04:18 +07:00
parent 36642ec71f
commit bb72a9732f

View File

@ -26,7 +26,7 @@ SHELL += -x
endif
ifeq (1,$(STDOUT))
LOG = 2>&1 | tee -a $(BUILDLOG)
LOG_STDERR = $(LOG)
LOG_STDERR = 2> >(tee -a $(BUILDLOG) >&2) 1>>$(BUILDLOG)
else
LOG = >>$(BUILDLOG) 2>&1
LOG_STDERR = 2> >(tee -a $(BUILDLOG) >&2) 1>>$(BUILDLOG)