linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jean Delvare <jdelvare@suse.de>
To: Baruch Siach <baruch@tkos.co.il>
Cc: linux-i2c@vger.kernel.org,
	Angelo Compagnucci <angelo@amarulasolutions.com>
Subject: Re: [PATCH] lib/Module.mk: don't install dynamic library when disabled
Date: Tue, 9 Jan 2018 10:10:33 +0100	[thread overview]
Message-ID: <20180109101033.53eb7625@endymion> (raw)
In-Reply-To: <ae2e0c9708aeb4a8fb301a1a4016cec7b05fc142.1514869230.git.baruch@tkos.co.il>

Hi Baruch,

On Tue,  2 Jan 2018 07:00:30 +0200, Baruch Siach wrote:
> 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>
> ---
>  lib/Module.mk | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/lib/Module.mk b/lib/Module.mk
> index 2ebc70d76ed9..c492961e0a4a 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

Ugh, this avalanche of fix-up patches is getting embarrassing :(

Thanks for the fix, committed.

-- 
Jean Delvare
SUSE L3 Support

      reply	other threads:[~2018-01-09  9:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-02  5:00 [PATCH] lib/Module.mk: don't install dynamic library when disabled Baruch Siach
2018-01-09  9:10 ` Jean Delvare [this message]

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=20180109101033.53eb7625@endymion \
    --to=jdelvare@suse.de \
    --cc=angelo@amarulasolutions.com \
    --cc=baruch@tkos.co.il \
    --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).