Changeset View
Changeset View
Standalone View
Standalone View
head/sys/conf/kern.post.mk
Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Lines | rm -f *.o *.so *.pico *.ko *.s eddep errs \ | ||||
tags vers.c \ | tags vers.c \ | ||||
vnode_if.c vnode_if.h vnode_if_newproto.h vnode_if_typedef.h \ | vnode_if.c vnode_if.h vnode_if_newproto.h vnode_if_typedef.h \ | ||||
${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \ | ${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \ | ||||
${CLEAN} | ${CLEAN} | ||||
# This is a hack. BFD "optimizes" away dynamic mode if there are no | # This is a hack. BFD "optimizes" away dynamic mode if there are no | ||||
# dynamic references. We could probably do a '-Bforcedynamic' mode like | # dynamic references. We could probably do a '-Bforcedynamic' mode like | ||||
# in the a.out ld. For now, this works. | # in the a.out ld. For now, this works. | ||||
HACK_EXTRA_FLAGS?= -shared | |||||
hack.pico: Makefile | hack.pico: Makefile | ||||
:> hack.c | :> hack.c | ||||
${CC} ${HACK_EXTRA_FLAGS} -nostdlib hack.c -o hack.pico | ${CC} -shared ${CFLAGS} -nostdlib hack.c -o hack.pico | ||||
rm -f hack.c | rm -f hack.c | ||||
offset.inc: $S/kern/genoffset.sh genoffset.o | offset.inc: $S/kern/genoffset.sh genoffset.o | ||||
NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genoffset.sh genoffset.o > ${.TARGET} | NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genoffset.sh genoffset.o > ${.TARGET} | ||||
genoffset.o: $S/kern/genoffset.c | genoffset.o: $S/kern/genoffset.c | ||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} $S/kern/genoffset.c | ${CC} -c ${CFLAGS:N-flto:N-fno-common} $S/kern/genoffset.c | ||||
▲ Show 20 Lines • Show All 248 Lines • Show Last 20 Lines |