From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C3=89meric?= Vigier Date: Thu, 3 Apr 2014 11:53:32 -0400 (EDT) Subject: [Buildroot] new package not built, AR prefix not passed to make In-Reply-To: <533D8340.8060400@zacarias.com.ar> Message-ID: <1274866561.103424.1396540412084.JavaMail.root@mail> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net ----- Mail original ----- > On 04/03/2014 12:43 PM, ?meric Vigier wrote: > > >> Why is AR prefix not passed to make here? Is this related to the > >> generic-package? > > > > I believe I found part of my answer on gnu.org libc manual: > > You may need to set AR to cross-compiling versions of ar if the > > native tools > > are not configured to work with object files for the target you > > configured for. > > > > $ ar --help > > [...] > > ar: supported targets: elf64-x86-64 elf32-i386 elf32-x86-64 > > a.out-i386-linux pei-i386 pei-x86-64 elf64-l1om elf64-k1om > > elf64-little elf64-big elf32-little elf32-big plugin srec > > symbolsrec verilog tekhex binary ihex > > > > So I guess buildroot makes such a sanity check, right? > > You just need to use $(TARGET_AR) the same way you're using > $(TARGET_CC) > and others. > Snip: > > define LIBFPGA_BUILD_CMDS > $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" \ > AR="$(TARGET_AR)" -C $(@D) all > endef Stupid me, thanks! > > Or better still what usually works... > $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) > > Regards. > >