summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlizhe <lizhe67@huawei.com>2020-05-26 11:54:11 +0800
committerPavel Shilovsky <pshilov@microsoft.com>2020-09-03 10:35:18 -0700
commitaeaa786aceb0ea781ded2c151fb68f6b34880ad4 (patch)
tree0d603994d3bf97fbfa58fc124ede5386a7623bed
parentc608a7fa1c7385aa862e92a02bc122725231aed4 (diff)
downloadcifs-utils-aeaa786aceb0ea781ded2c151fb68f6b34880ad4.tar.gz
cifs-utils-aeaa786aceb0ea781ded2c151fb68f6b34880ad4.tar.bz2
cifs-utils-aeaa786aceb0ea781ded2c151fb68f6b34880ad4.zip
cifs-utils: fix probabilistic compiling error
When we compile cifs-utils, we may probabilistic encounter install error like: cd ***/sbin && ln -sf mount.cifs mount.smb3 ***/sbin: No such file or directory The reason of this problem is that if we compile cifs-utils using multithreading, target 'install-sbinPROGRAMS' may be built after target 'install-exec-hook' of the main Makefile. Target 'install-sbinPROGRAMS' will copy the executable file 'mount.cifs' to the $(ROOTSBINDIR), which target 'install-exec-hook' will do the 'ln' command on. This patch add the dependency of target 'install-exec-hook' to ensure the correct order of the compiling. Signed-off-by: lizhe <lizhe67@huawei.com>
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index a95782d..8a17e73 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -117,7 +117,7 @@ endif
SUBDIRS = contrib
-install-exec-hook:
+install-exec-hook: install-sbinPROGRAMS
(cd $(DESTDIR)$(ROOTSBINDIR) && ln -sf mount.cifs mount.smb3)
install-data-hook: