7ec1ec4fdb
In most cases this simply builds the file from lib/libc for missing functions (e.g. strlcpy on Linux etc.). In cases where this is not possible I've added an implementation to tools/build/cross-build. The fgetln.c/fgetwln.c/closefrom.c compatibility code was obtained from https://gitlab.freedesktop.org/libbsd/libbsd, but I'm not sure it makes sense to import it into to contrib just for these three bootstrap files. Reviewed By: brooks Differential Revision: https://reviews.freebsd.org/D25978
13 lines
411 B
Makefile
13 lines
411 B
Makefile
# $FreeBSD$
|
|
|
|
# Various MK_* options need to be set before including bsd.prog.mk/bsd.lib.mk
|
|
.if ${.MAKE.OS} != "FreeBSD"
|
|
# Most Linux distributions don't ship the .a files for static linking.
|
|
# And on macOS it is impossible to create a statically linked binary.
|
|
NO_SHARED:= no
|
|
MK_PIE:= no
|
|
MK_RETPOLINE= no
|
|
# There is no objcopy on macOS so we can't do the MK_DEBUG_FILES objcopy magic.
|
|
MK_DEBUG_FILES:=no
|
|
.endif
|