diff options
author | Baruch Siach <baruch@tkos.co.il> | 2018-01-09 10:09:07 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2018-01-09 10:09:07 +0100 |
commit | bf73c7f9fb84ba99aa4104382e343dd9df36ced9 (patch) | |
tree | 5a68e69256659ce3903ab548a9a67f81b4be89b0 | |
parent | f87c97317012a3b96b67237925893b8ffd5f4f50 (diff) | |
download | i2c-tools-bf73c7f9fb84ba99aa4104382e343dd9df36ced9.tar.gz |
lib/Module.mk: Don't install dynamic library when disabled
Do not attempt to install the dynamic library when build of that library
is disabled. Fixes the following installation error:
install -m 755 lib/libi2c.so.0.1.0 .../target/usr/lib
install: cannot stat 'lib/libi2c.so.0.1.0': No such file or directory
lib/Module.mk:90: recipe for target 'install-lib' failed
Cc: Angelo Compagnucci <angelo@amarulasolutions.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixes: 9906b2ecb6ae ("Makefile: Add flag to disable dynamic library")
-rw-r--r-- | lib/Module.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Module.mk b/lib/Module.mk index 2ebc70d..c492961 100644 --- a/lib/Module.mk +++ b/lib/Module.mk @@ -88,9 +88,11 @@ clean-lib: install-lib: $(addprefix $(LIB_DIR)/,$(LIB_TARGETS)) $(INSTALL_DIR) $(DESTDIR)$(libdir) +ifeq ($(BUILD_DYNAMIC_LIB),1) $(INSTALL_PROGRAM) $(LIB_DIR)/$(LIB_SHLIBNAME) $(DESTDIR)$(libdir) $(LN) $(LIB_SHLIBNAME) $(DESTDIR)$(libdir)/$(LIB_SHSONAME) $(LN) $(LIB_SHSONAME) $(DESTDIR)$(libdir)/$(LIB_SHBASENAME) +endif ifeq ($(BUILD_STATIC_LIB),1) $(INSTALL_DATA) $(LIB_DIR)/$(LIB_STLIBNAME) $(DESTDIR)$(libdir) endif |