summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-12-17 09:56:04 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-12-17 09:56:04 +0100
commita4e713bf34a154ccf5e32c98eefff1e8fd3062b6 (patch)
treed6b6b779109ff02c76de7d6ed8a629e28e18861d
parent06bbe7f7b8d1f1eac7e1663ce3d21373afb051ed (diff)
downloadbuildroot-a4e713bf34a154ccf5e32c98eefff1e8fd3062b6.tar.gz
buildroot-a4e713bf34a154ccf5e32c98eefff1e8fd3062b6.zip
traceroute: pass INSTALL=$(INSTALL) as install time
As reported by Peter, using cp during the installation isn't correct, as it follows symbolic links, potentially over-writing the busybox binary through its traceroute symbolic link. To avoid that, we pass INSTALL=$(INSTALL) during the installation step. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/traceroute/traceroute.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/traceroute/traceroute.mk b/package/traceroute/traceroute.mk
index 5d185a2900..9d74b8fe38 100644
--- a/package/traceroute/traceroute.mk
+++ b/package/traceroute/traceroute.mk
@@ -23,7 +23,8 @@ endef
define TRACEROUTE_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
- DESTDIR=$(TARGET_DIR) prefix=/usr install -C $(@D)
+ DESTDIR=$(TARGET_DIR) prefix=/usr install \
+ INSTALL=$(INSTALL) -C $(@D)
endef
$(eval $(generic-package))
OpenPOWER on IntegriCloud