Simon J. Gerraty <s...@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 

_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to