Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kern.pre.mk
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | |||||
# Put configuration-specific C flags last (except for ${PROF}) so that they | # Put configuration-specific C flags last (except for ${PROF}) so that they | ||||
# can override the others. | # can override the others. | ||||
CFLAGS+= ${CONF_CFLAGS} | CFLAGS+= ${CONF_CFLAGS} | ||||
.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id} | .if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id} | ||||
LDFLAGS+= -Wl,--build-id=sha1 | LDFLAGS+= -Wl,--build-id=sha1 | ||||
.endif | .endif | ||||
.if ${MACHINE_CPUARCH} == "amd64" | |||||
LDFLAGS+= -z max-page-size=2097152 -z common-page-size=4096 | |||||
emaste: These should have `-Wl,` wrapping, and it probably makes sense to commit this separately, with… | |||||
Done Inline ActionsThanks! Good catch! I can commit this separately. jtl: Thanks! Good catch! I can commit this separately. | |||||
.endif | |||||
NORMAL_C= ${CC} -c ${CFLAGS} ${WERROR} ${PROF} ${.IMPSRC} | NORMAL_C= ${CC} -c ${CFLAGS} ${WERROR} ${PROF} ${.IMPSRC} | ||||
NORMAL_S= ${CC:N${CCACHE_BIN}} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC} | NORMAL_S= ${CC:N${CCACHE_BIN}} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC} | ||||
PROFILE_C= ${CC} -c ${CFLAGS} ${WERROR} ${.IMPSRC} | PROFILE_C= ${CC} -c ${CFLAGS} ${WERROR} ${.IMPSRC} | ||||
NORMAL_C_NOWERROR= ${CC} -c ${CFLAGS} ${PROF} ${.IMPSRC} | NORMAL_C_NOWERROR= ${CC} -c ${CFLAGS} ${PROF} ${.IMPSRC} | ||||
NORMAL_M= ${AWK} -f $S/tools/makeobjops.awk ${.IMPSRC} -c ; \ | NORMAL_M= ${AWK} -f $S/tools/makeobjops.awk ${.IMPSRC} -c ; \ | ||||
${CC} -c ${CFLAGS} ${WERROR} ${PROF} ${.PREFIX}.c | ${CC} -c ${CFLAGS} ${WERROR} ${PROF} ${.PREFIX}.c | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |
These should have -Wl, wrapping, and it probably makes sense to commit this separately, with a comment.