Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From a6a59693066fd8da81f7107479df3e32a129247d Mon Sep 17 00:00:00 2001 |
| 2 | From: Jean Delvare <jdelvare@suse.de> |
| 3 | Date: Wed, 6 Dec 2017 09:55:04 +0100 |
| 4 | Subject: [PATCH] lib/Module.mk: Add missing dependencies |
| 5 | |
| 6 | The lib symlinks lacked a dependency to the actual library file, so |
| 7 | parallel builds could run into a race and break. |
| 8 | |
| 9 | Upstream-Status: Backport |
| 10 | |
| 11 | Signed-off-by: Jean Delvare <jdelvare@suse.de> |
| 12 | Signed-off-by: Maxin B. John <maxin.john@intel.com> |
| 13 | --- |
| 14 | lib/Module.mk | 4 ++-- |
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 16 | |
| 17 | diff --git a/lib/Module.mk b/lib/Module.mk |
| 18 | index 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 | -- |
| 36 | 2.4.0 |
| 37 | |