freebsd-src/share/mk/src.init.linux.mk
Simon J. Gerraty f9df609750 Add support for host32 for DIRDEPS_BUILD
Allow building 32bit libs for host.

Move CFLAGS additions from local.sys.dirdeps.mk (which is too early
and impacts CFLAGS defaults) to local.sys.mk

Reviewed by:	stevek
Sponsored by:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D41946
2023-09-22 23:27:37 -07:00

19 lines
380 B
Makefile

# We want to build some host tools (eg makefs, mkimg) for Linux
# This only gets included during DIRDEPS_BUILD when MACHINE is "host"
# or "host32"
CFLAGS+= -I${SRCTOP}/tools/build/cross-build/include/linux
WARNS= 0
.ifdef PROG
LOCAL_LIBRARIES+= bsd egacy
LIBADD+= egacy m
.endif
# Bring in the full GNU namespace
CFLAGS+= -D_GNU_SOURCE
# for sane staging behavior
LN= ln -L