* [Buildroot] Problem calling ldconfig in ext2root.mk @ 2007-08-24 0:12 Todd Valentic 2007-08-24 8:54 ` Bernhard Fischer 0 siblings, 1 reply; 3+ messages in thread From: Todd Valentic @ 2007-08-24 0:12 UTC (permalink / raw) To: buildroot Hi - I'm having a problem with a recent change in ext2root.mk (showed up in r19618): http://buildroot.uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/target/ext2/ext2root.mk?rev=19618&r1=19604&r2=19618 - -$(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null + $(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null I'm using an external toolchain that doesn't have an ldconfig, so the make bombs out at this point. The makefile used to ignore this, which was OK for my system. Should there be a check to see if $(TARGET_LDCONFIG) exists? Todd ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Problem calling ldconfig in ext2root.mk 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 0 siblings, 1 reply; 3+ messages in thread From: Bernhard Fischer @ 2007-08-24 8:54 UTC (permalink / raw) To: buildroot On Thu, Aug 23, 2007 at 05:12:59PM -0700, Todd Valentic wrote: >Hi - > >I'm having a problem with a recent change in ext2root.mk (showed up in >r19618): > >http://buildroot.uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/target/ext2/ext2root.mk?rev=19618&r1=19604&r2=19618 > >- -$(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null >+ $(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null > > >I'm using an external toolchain that doesn't have an ldconfig, so the >make bombs out at this >point. The makefile used to ignore this, which was OK for my system. >Should there be a check >to see if $(TARGET_LDCONFIG) exists? Does the attached is any better? -------------- next part -------------- A non-text attachment was scrubbed... Name: br2.target_ldconfig-conditional.diff Type: text/x-diff Size: 4164 bytes Desc: not available Url : http://busybox.net/lists/buildroot/attachments/20070824/56e4cb3b/attachment.bin ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Problem calling ldconfig in ext2root.mk 2007-08-24 8:54 ` Bernhard Fischer @ 2007-08-24 18:43 ` Todd Valentic 0 siblings, 0 replies; 3+ messages in thread From: Todd Valentic @ 2007-08-24 18:43 UTC (permalink / raw) To: buildroot 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-24 18:43 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox