include: remove file before overwritting it with replace_script
authorJohn Crispin <john@openwrt.org>
Mon, 15 Sep 2014 10:18:56 +0000 (10:18 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 15 Sep 2014 10:18:56 +0000 (10:18 +0000)
commitb44a2d3f7efa8ce5cbc6b2468bc7e1a870af6fd1
tree4936d99d433a91fea58275b167b53753c2b02691
parent88cc0ea21dab9359d4f8af7ed4e8f98c355768d8
include: remove file before overwritting it with replace_script

config.{sub,guess} could be symlinks to a shared common version of
this file (e.g. in staging). So we remove the destination file via
--remove-destination option of cp. This prevents replaceing the
common file that other packages could be build with if running at
the same time.

This fixes a class of errors where config.sub is missing, or
only partially present when running configure because a cp is
currently in progress

This is commonly seen building with a lot of parallel jobs and
on packages that use 'PKG_FIXUP:=autoreconf'

Signed-off-by: Matthew McClintock <mmcclint@qca.qualcomm.com>
Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com>
SVN-Revision: 42547
include/package-defaults.mk