Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.port.mk
Show First 20 Lines • Show All 331 Lines • ▼ Show 20 Lines | |||||
# WITH_DEBUG - If set, debugging flags are added to CFLAGS and the | # WITH_DEBUG - If set, debugging flags are added to CFLAGS and the | ||||
# binaries don't get stripped by INSTALL_PROGRAM or | # binaries don't get stripped by INSTALL_PROGRAM or | ||||
# INSTALL_LIB. Besides, individual ports might | # INSTALL_LIB. Besides, individual ports might | ||||
# add their specific to produce binaries for debugging | # add their specific to produce binaries for debugging | ||||
# purposes. You can override the debug flags that are | # purposes. You can override the debug flags that are | ||||
# passed to the compiler by setting DEBUG_FLAGS. It is | # passed to the compiler by setting DEBUG_FLAGS. It is | ||||
# set to "-g" at default. | # set to "-g" at default. | ||||
# | # | ||||
# NOTE: to override a globally defined WITH_DEBUG at a | |||||
# later time ".undef WITH_DEBUG" can be used | |||||
# | |||||
# WITH_DEBUG_PORTS - A list of origins for which WITH_DEBUG will be set | # WITH_DEBUG_PORTS - A list of origins for which WITH_DEBUG will be set | ||||
# | # | ||||
# WITHOUT_SSP - Disable SSP. | # WITHOUT_SSP - Disable SSP. | ||||
# | # | ||||
# SSP_CFLAGS - Defaults to -fstack-protector. This value | # SSP_CFLAGS - Defaults to -fstack-protector. This value | ||||
# is added to CFLAGS and the necessary flags | # is added to CFLAGS and the necessary flags | ||||
# are added to LDFLAGS. Note that SSP_UNSAFE | # are added to LDFLAGS. Note that SSP_UNSAFE | ||||
# can be used in Makefiles by port maintainers | # can be used in Makefiles by port maintainers | ||||
▲ Show 20 Lines • Show All 1,328 Lines • ▼ Show 20 Lines | |||||
.if defined(_CPUCFLAGS) | .if defined(_CPUCFLAGS) | ||||
.if !empty(_CPUCFLAGS) | .if !empty(_CPUCFLAGS) | ||||
CFLAGS:= ${CFLAGS:C/${_CPUCFLAGS}//} | CFLAGS:= ${CFLAGS:C/${_CPUCFLAGS}//} | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
# Reset value from bsd.own.mk. | # Reset value from bsd.own.mk. | ||||
.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) | .if defined(WITH_DEBUG) | ||||
.if !defined(INSTALL_STRIPPED) | .if !defined(INSTALL_STRIPPED) | ||||
STRIP= #none | STRIP= #none | ||||
MAKE_ENV+= DONTSTRIP=yes | MAKE_ENV+= DONTSTRIP=yes | ||||
STRIP_CMD= ${TRUE} | STRIP_CMD= ${TRUE} | ||||
.endif | .endif | ||||
DEBUG_FLAGS?= -g | DEBUG_FLAGS?= -g | ||||
CFLAGS:= ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} | CFLAGS:= ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} | ||||
.if defined(INSTALL_TARGET) | .if defined(INSTALL_TARGET) | ||||
▲ Show 20 Lines • Show All 3,757 Lines • Show Last 20 Lines |