Re: 11.0 -r301139: WITH_META_MODE=yes vs. "sh: ./make_keys: Exec format error"? [still true of -r301815]

From: Simon J. Gerraty <sjg_at_juniper.net>
Date: Sun, 12 Jun 2016 06:02:28 -0700
Simon J. Gerraty <sjg_at_juniper.net> wrote:
> If you want cross-building to work, the simple solution is to ensure
> that you use HOST_CC rather than CC when building things that need to
> run on the build host.

FWIW there are not many makefiles to fix:

bin/csh/Makefile
gnu/usr.bin/cc/cc_tools/Makefile
lib/libmagic/Makefile
lib/ncurses/ncurses/Makefile
share/syscons/scrnmaps/Makefile
usr.bin/awk/Makefile

and bin/sh/Makefile which is a bit different for some reason.
also in Makefile.inc1

CC=${HOST_CC} is in the BMAKE command line:

BMAKE=          MAKEOBJDIRPREFIX=${WORLDTMP} \
                ${BMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \
                DESTDIR= \
                BOOTSTRAPPING=${OSRELDATE} \
                SSP_CFLAGS= \
                HOSTPROG=yes \
                CC=${HOST_CC} \
                MK_HTML=no NO_LINT=yes MK_MAN=no \
                -DNO_PIC MK_PROFILE=no -DNO_SHARED \
                -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no \
                MK_CLANG_EXTRAS=no MK_CLANG_FULL=no \
                MK_LLDB=no MK_TESTS=no \
                MK_INCLUDES=yes 
Received on Sun Jun 12 2016 - 11:02:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:05 UTC