All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] uclibc/arm: don't install ldd.host and ldconfig.host if !HAVE_SHARED
Date: Sun, 28 Jul 2013 18:59:32 +0200	[thread overview]
Message-ID: <20130728185932.5142e4b2@skate> (raw)
In-Reply-To: <1375030117.13990.1.camel@phoenix>

Dear Axel Lin,

On Mon, 29 Jul 2013 00:48:37 +0800, Axel Lin wrote:
> ldd.host and ldconfig.host will be built only when HAVE_SHARED=y.
> 
> This fixes below build error when
>  # BR2_BFIN_FLAT is not set
>  # ARCH_HAS_MMU is not set
>  UCLIBC_FORMAT_FLAT=y
> 
> make[1]: Leaving directory `/opt/test/buildroot/buildroot/output/build/uclibc-0.9.33.2'
> /usr/bin/install -D -m 0755 /opt/test/buildroot/buildroot/output/build/uclibc-0.9.33.2/utils/ldd.host /opt/test/buildroot/buildroot/output/host/usr/bin/ldd
> /usr/bin/install: cannot stat '/opt/test/buildroot/buildroot/output/build/uclibc-0.9.33.2/utils/ldd.host': No such file or directory
> make: *** [/opt/test/buildroot/buildroot/output/build/uclibc-0.9.33.2/.stamp_staging_installed] Error 1

Which Buildroot configuration triggers this?


> +	if grep -q HAVE_SHARED=y $(@D)/.config; then \
> +		$(INSTALL) -D -m 0755 $(@D)/utils/ldd.host $(HOST_DIR)/usr/bin/ldd; \
> +		ln -sf ldd $(HOST_DIR)/usr/bin/$(GNU_TARGET_NAME)-ldd; \
> +		$(INSTALL) -D -m 0755 $(@D)/utils/ldconfig.host $(HOST_DIR)/usr/bin/ldconfig; \
> +		ln -sf ldconfig $(HOST_DIR)/usr/bin/$(GNU_TARGET_NAME)-ldconfig; \
> +	fi

I'd prefer not to grep into the uClibc configuration, and instead find
out which Buildroot configuration triggers this problem and find a
proper solution to it.

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2013-07-28 16:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-28 16:48 [Buildroot] [PATCH] uclibc/arm: don't install ldd.host and ldconfig.host if !HAVE_SHARED Axel Lin
2013-07-28 16:59 ` Thomas Petazzoni [this message]
2013-07-28 17:17   ` Axel Lin
2013-07-28 17:22     ` Thomas Petazzoni
2013-07-28 17:30       ` Axel Lin
2013-07-29  7:15         ` Thomas Petazzoni
2013-07-31 17:20       ` Axel Lin

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=20130728185932.5142e4b2@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.