git: 458e0c1b6673 - main - local.sys.dirdeps.mk: Allow CROSS_TARGET_FLAGS to be overridden
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Aug 2023 20:14:14 UTC
The branch main has been updated by stevek: URL: https://cgit.FreeBSD.org/src/commit/?id=458e0c1b667354a45cb233ea7fc0256934e15301 commit 458e0c1b667354a45cb233ea7fc0256934e15301 Author: Stephen J. Kiernan <stevek@FreeBSD.org> AuthorDate: 2023-08-08 20:11:27 +0000 Commit: Stephen J. Kiernan <stevek@FreeBSD.org> CommitDate: 2023-08-08 20:11:27 +0000 local.sys.dirdeps.mk: Allow CROSS_TARGET_FLAGS to be overridden Use ?= when setting CROSS_TARGET_FLAGS so we do not override it if another file already has set it. Reviewed by: sjg Obtained from: Juniper Networks, Inc. --- share/mk/local.sys.dirdeps.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/local.sys.dirdeps.mk b/share/mk/local.sys.dirdeps.mk index f06b4a33f1f7..9fdfab588035 100644 --- a/share/mk/local.sys.dirdeps.mk +++ b/share/mk/local.sys.dirdeps.mk @@ -122,7 +122,7 @@ ${var}= ${HOST_${var}} FREEBSD_REVISION!= sed -n '/^REVISION=/{s,.*=,,;s,",,g;p; }' ${SRCTOP}/sys/conf/newvers.sh .export FREEBSD_REVISION .endif -CROSS_TARGET_FLAGS= -target ${MACHINE_ARCH}-unknown-freebsd${FREEBSD_REVISION} +CROSS_TARGET_FLAGS?= -target ${MACHINE_ARCH}-unknown-freebsd${FREEBSD_REVISION} CFLAGS+= ${CROSS_TARGET_FLAGS} ACFLAGS+= ${CROSS_TARGET_FLAGS} .endif