From mboxrd@z Thu Jan 1 00:00:00 1970 From: Microbit_Ubuntu Date: Sat, 15 May 2010 21:19:27 +1000 Subject: [Buildroot] [PATCH 5/8] ltrace: fix build failure In-Reply-To: <0878af525699db6c1298ecb340f7ffdd95541045.1273836748.git.thomas.petazzoni@free-electrons.com> References: <0878af525699db6c1298ecb340f7ffdd95541045.1273836748.git.thomas.petazzoni@free-electrons.com> Message-ID: <1273922367.2046.3.camel@ubuntu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Thomas, On Fri, 2010-05-14 at 13:37 +0200, Thomas Petazzoni wrote: > ltrace failed to build because of missing arguments to gcc to find the > header files. This is due to the fact that the existing ltrace.mk was > setting CC and LD at build time to incorrect values. Keeping the > values set at configure time is just the right thing to do. > > Signed-off-by: Thomas Petazzoni > --- > package/ltrace/ltrace.mk | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/package/ltrace/ltrace.mk b/package/ltrace/ltrace.mk > index c99f223..4a6811d 100644 > --- a/package/ltrace/ltrace.mk > +++ b/package/ltrace/ltrace.mk > @@ -54,8 +54,7 @@ $(LTRACE_DIR)/.configured: $(LTRACE_DIR)/.patched > touch $@ > > $(LTRACE_DIR)/$(LTRACE_BINARY): $(LTRACE_DIR)/.configured > - $(MAKE) CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld ARCH=$(LTRACE_ARCH) \ > - -C $(LTRACE_DIR) > + $(MAKE) ARCH=$(LTRACE_ARCH) -C $(LTRACE_DIR) > > $(TARGET_DIR)/$(LTRACE_TARGET_BINARY): $(LTRACE_DIR)/$(LTRACE_BINARY) > #$(MAKE) DESTDIR=$(TARGET_DIR) ARCH=$(LTRACE_ARCH) -C $(LTRACE_DIR) install Is this why I also observed this problem with ltrace which I posted on 4/05/10 ? : > 2. ltrace-0.5 > the OS path for sysdeps gets set to : > OS := linux-uclibcgnueabi > whereas internal toolchain 2010.02 produces at start of Makefile : > OS = linux-gnu > This results in an unknown path to /sysdeps/ > Has anyone come across this behaviour before ? > I can workaround for now by manually changing Makefile and then > resuming build. > I can't find the common denominator - I think it has to do with CC > being set --sysroot=...... whereas the internal toolchain produces > --isysroot=...... ????? TIA -- Best regards, Kris