blob: 426b4330ea9062eebb7e6e9a02704450fb32e56b [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From a6a59693066fd8da81f7107479df3e32a129247d Mon Sep 17 00:00:00 2001
2From: Jean Delvare <jdelvare@suse.de>
3Date: Wed, 6 Dec 2017 09:55:04 +0100
4Subject: [PATCH] lib/Module.mk: Add missing dependencies
5
6The lib symlinks lacked a dependency to the actual library file, so
7parallel builds could run into a race and break.
8
9Upstream-Status: Backport
10
11Signed-off-by: Jean Delvare <jdelvare@suse.de>
12Signed-off-by: Maxin B. John <maxin.john@intel.com>
13---
14 lib/Module.mk | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/lib/Module.mk b/lib/Module.mk
18index 432a051..fd2c8c4 100644
19--- a/lib/Module.mk
20+++ b/lib/Module.mk
21@@ -42,11 +42,11 @@ endif
22 $(LIB_DIR)/$(LIB_SHLIBNAME): $(LIB_DIR)/smbus.o
23 $(CC) -shared $(LDFLAGS) -Wl,--version-script=$(LIB_DIR)/libi2c.map -Wl,-soname,$(LIB_SHSONAME) -o $@ $^ -lc
24
25-$(LIB_DIR)/$(LIB_SHSONAME):
26+$(LIB_DIR)/$(LIB_SHSONAME): $(LIB_DIR)/$(LIB_SHLIBNAME)
27 $(RM) $@
28 $(LN) $(LIB_SHLIBNAME) $@
29
30-$(LIB_DIR)/$(LIB_SHBASENAME):
31+$(LIB_DIR)/$(LIB_SHBASENAME): $(LIB_DIR)/$(LIB_SHLIBNAME)
32 $(RM) $@
33 $(LN) $(LIB_SHLIBNAME) $@
34
35--
362.4.0
37