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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user