Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.prog.mk
Show All 37 Lines | |||||
.if ${MK_BIND_NOW} != "no" | .if ${MK_BIND_NOW} != "no" | ||||
LDFLAGS+= -Wl,-znow | LDFLAGS+= -Wl,-znow | ||||
.endif | .endif | ||||
.if ${MK_RETPOLINE} != "no" | .if ${MK_RETPOLINE} != "no" | ||||
CFLAGS+= -mretpoline | CFLAGS+= -mretpoline | ||||
CXXFLAGS+= -mretpoline | CXXFLAGS+= -mretpoline | ||||
# retpolineplt is broken with static linking (PR 233336) | # retpolineplt is broken with static linking (PR 233336) | ||||
.if !defined(NO_SHARED) || ${NO_SHARED} == "no" || ${NO_SHARED} == "NO" | .if !defined(NO_SHARED) || ${NO_SHARED} == "no" || ${NO_SHARED} == "NO" | ||||
.if ${MK_PIE} != "no" | |||||
CFLAGS+= -fPIE | |||||
CXXFLAGS+= -fPIE | |||||
LDFLAGS+= -pie | |||||
.endif | |||||
LDFLAGS+= -Wl,-zretpolineplt | LDFLAGS+= -Wl,-zretpolineplt | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if defined(CRUNCH_CFLAGS) | .if defined(CRUNCH_CFLAGS) | ||||
CFLAGS+=${CRUNCH_CFLAGS} | CFLAGS+=${CRUNCH_CFLAGS} | ||||
.else | .else | ||||
.if ${MK_DEBUG_FILES} != "no" && empty(DEBUG_FLAGS:M-g) && \ | .if ${MK_DEBUG_FILES} != "no" && empty(DEBUG_FLAGS:M-g) && \ | ||||
▲ Show 20 Lines • Show All 279 Lines • Show Last 20 Lines |