John Crispin b44a2d3f7e 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
2014-09-15 10:18:56 +00:00
..
2012-11-23 20:02:29 +00:00
2014-06-11 17:01:15 +00:00
2013-03-07 17:32:29 +00:00
2012-12-15 02:00:50 +00:00
2012-07-28 21:06:59 +00:00
2008-09-02 10:57:51 +00:00
2014-09-03 03:09:03 +00:00