ce1dad8f15
OK. We don't really need a bsd.stand.mk, and it was causing a -fPIC for the toolchain to be added (bogusly) when building on amd64. Pull all relevant defs back into defs.mk and delete bsd.stand.mk. This saves about 15-20k on i386 loader and zfsloader which when combined with Lua give us a lot more stack space in those constrained environments.
21 lines
382 B
Makefile
21 lines
382 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
LIB= zfsboot
|
|
|
|
.PATH: ${ZFSSRC}
|
|
SRCS+= zfs.c skein.c skein_block.c
|
|
# Do not unroll skein loops, reduce code size
|
|
CFLAGS+= -DSKEIN_LOOP=111
|
|
.PATH: ${SYSDIR}/crypto/skein
|
|
|
|
CFLAGS+= -DBOOTPROG=\"zfsloader\"
|
|
CFLAGS+= -I${LDRSRC}
|
|
CFLAGS+= -I${SYSDIR}/cddl/boot/zfs
|
|
CFLAGS+= -I${SYSDIR}/crypto/skein
|
|
|
|
CFLAGS+= -Wformat -Wall
|
|
|
|
.include <bsd.lib.mk>
|