From: Angelo Compagnucci <angelo@amarulasolutions.com>
To: linux-i2c@vger.kernel.org
Cc: jdelvare@suse.de, Angelo Compagnucci <angelo@amarulasolutions.com>
Subject: [PATCH] lib: Fix compilation when USE_STATIC_LIB
Date: Tue, 28 Nov 2017 23:58:17 +0100 [thread overview]
Message-ID: <1511909897-18600-1-git-send-email-angelo@amarulasolutions.com> (raw)
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
next reply other threads:[~2017-11-28 22:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-28 22:58 Angelo Compagnucci [this message]
2017-11-29 10:08 ` [PATCH] lib: Fix compilation when USE_STATIC_LIB Jean Delvare
2017-11-29 11:04 ` Angelo Compagnucci
2017-11-29 12:05 ` Jean Delvare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1511909897-18600-1-git-send-email-angelo@amarulasolutions.com \
--to=angelo@amarulasolutions.com \
--cc=jdelvare@suse.de \
--cc=linux-i2c@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).