Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/bsd.prog.mk
Show All 28 Lines | |||||
.if defined(PROG_CXX) | .if defined(PROG_CXX) | ||||
PROG= ${PROG_CXX} | PROG= ${PROG_CXX} | ||||
.endif | .endif | ||||
.if !empty(LDFLAGS:M-Wl,*--oformat,*) || !empty(LDFLAGS:M-static) | .if !empty(LDFLAGS:M-Wl,*--oformat,*) || !empty(LDFLAGS:M-static) | ||||
MK_DEBUG_FILES= no | MK_DEBUG_FILES= no | ||||
.endif | .endif | ||||
.if ${MK_RETPOLINE} != "no" | |||||
CFLAGS+= -mretpoline | |||||
CXXFLAGS+= -mretpoline | |||||
LDFLAGS+= -Wl,-zretpolineplt | |||||
.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) && \ | ||||
empty(DEBUG_FLAGS:M-gdwarf-*) | empty(DEBUG_FLAGS:M-gdwarf-*) | ||||
CFLAGS+= ${DEBUG_FILES_CFLAGS} | CFLAGS+= ${DEBUG_FILES_CFLAGS} | ||||
CTFFLAGS+= -g | CTFFLAGS+= -g | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 275 Lines • Show Last 20 Lines |