linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] lib: Fix compilation when USE_STATIC_LIB
@ 2017-11-28 22:58 Angelo Compagnucci
  2017-11-29 10:08 ` Jean Delvare
  0 siblings, 1 reply; 4+ messages in thread
From: Angelo Compagnucci @ 2017-11-28 22:58 UTC (permalink / raw)
  To: linux-i2c; +Cc: jdelvare, Angelo Compagnucci

This patch removes the mandatory compiling of the shared library
when USE_STATIC_LIB is used.

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
 lib/Module.mk | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/Module.mk b/lib/Module.mk
index 432a051..bdcb19d 100644
--- a/lib/Module.mk
+++ b/lib/Module.mk
@@ -27,12 +27,13 @@ LIB_SHSONAME	:= $(LIB_SHBASENAME).$(LIB_MAINVER)
 LIB_SHLIBNAME	:= $(LIB_SHBASENAME).$(LIB_VER)
 LIB_STLIBNAME	:= libi2c.a
 
-LIB_TARGETS	:= $(LIB_SHLIBNAME)
 LIB_LINKS	:= $(LIB_SHSONAME) $(LIB_SHBASENAME)
 LIB_OBJECTS	:= smbus.o
 ifeq ($(BUILD_STATIC_LIB),1)
-LIB_TARGETS	+= $(LIB_STLIBNAME)
+LIB_TARGETS	:= $(LIB_STLIBNAME)
 LIB_OBJECTS	+= smbus.ao
+else
+LIB_TARGETS	:= $(LIB_SHLIBNAME)
 endif
 
 #
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-29 12:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-28 22:58 [PATCH] lib: Fix compilation when USE_STATIC_LIB Angelo Compagnucci
2017-11-29 10:08 ` Jean Delvare
2017-11-29 11:04   ` Angelo Compagnucci
2017-11-29 12:05     ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).