Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Todd Valentic <todd.valentic@sri.com>
To: buildroot@busybox.net
Subject: [Buildroot] Problem calling ldconfig in ext2root.mk
Date: Fri, 24 Aug 2007 11:43:52 -0700	[thread overview]
Message-ID: <46CF26E8.50507@sri.com> (raw)
In-Reply-To: <20070824085448.GA13098@aon.at>

Hi Bernhard -

Thanks for taking a look at this problem.
>
> Does the attached is any better?
Just tried it and unfortunately it didn't work.

$(if $(TARGET_LDCONFIG),$(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null)

I think the problem here is that the "if" is evaluating as
true because the string $(TARGET_LDCONFIG) is set. What it isn't 
checking is if the actual file exists.

Would a test like this work:

   @test -x $(TARGET_LDCONFIG) && \
     $(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null


or should TARGET_LDCONFIG be unset early on if it doesn't exist
(in which case your original patch would work fine)?

Todd

      reply	other threads:[~2007-08-24 18:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-24  0:12 [Buildroot] Problem calling ldconfig in ext2root.mk Todd Valentic
2007-08-24  8:54 ` Bernhard Fischer
2007-08-24 18:43   ` Todd Valentic [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=46CF26E8.50507@sri.com \
    --to=todd.valentic@sri.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox