configure: Use := variable to set EPICS_HOST_ARCH if undefined.

Performance on Cygwin when using ?= is glacial...
This commit is contained in:
Andrew Johnson
2010-10-26 14:56:42 -05:00
parent 03539b05a4
commit 6ec71f56d0

View File

@@ -25,8 +25,11 @@ else
CONFIG ?= $(EPICS_BASE)/configure
endif
#
EPICS_HOST_ARCH ?= $(shell $(CONFIG)/../startup/EpicsHostArch.pl)
# Provide a default if the user hasn't set EPICS_HOST_ARCH
ifeq ($(origin EPICS_HOST_ARCH), undefined)
# NB: Must use a simply expanded variable here for performance:
EPICS_HOST_ARCH := $(shell $(CONFIG)/../startup/EpicsHostArch.pl)
endif
#
-include $(CONFIG)/os/CONFIG_COMPAT