opnsense-src/tools/build/mk/Makefile.boot.pre
Warner Losh d0b2dbfa0e Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
2023-08-16 11:55:03 -06:00

11 lines
399 B
Makefile

# 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