cross-compile problems

Bryan Murdock bryan.murdock at ubnt.com
Mon Oct 8 23:10:05 CEST 2018


On Mon, Oct 8, 2018 at 2:01 PM Bryan Murdock <bryan.murdock at ubnt.com> wrote:
> After removing all of those, I still run into this error:
>
> /home/bmurdock/work/os/output/build/freeradius-server-75d51694ad51865b41a3cf5a006c9968386c5bb1/build/make/jlibtool:
> 1: /home/bmurdock/work/os/output/build/freeradius-server-75d51694ad51865b41a3cf5a006c9968386c5bb1/build/make/jlibtool:
> ELF    � � @@h�@@   @@@@@� �    @ @    @@�m�m   �m�mA�mA� �   nnA� �      @  @:
> not found
>
> The jlibtool file it's trying to execute is an arm binary...

This patch fixes the above:

--- a/scripts/libtool.mk 2018-10-08 09:22:59.032031858 -0600
+++ b/scripts/libtool.mk 2018-10-08 15:04:18.406661484 -0600
@@ -43,8 +43,8 @@ ifeq "${LIBTOOL}" "JLIBTOOL"
     # binary!
     ${JLIBTOOL}: ${top_makedir}/jlibtool.c
  $(Q)mkdir -p $(dir $@)
- $(Q)echo CC jlibtool.c
- $(Q)${CC} $< -o $@
+ $(Q)echo HOSTCC jlibtool.c
+ $(Q)${HOSTCC} $< -o $@

     clean: jlibtool_clean



More information about the Freeradius-Devel mailing list