Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.port.mk
Show First 20 Lines • Show All 2,026 Lines • ▼ Show 20 Lines | |||||
.if !defined(WITHOUT_NO_STRICT_ALIASING) | .if !defined(WITHOUT_NO_STRICT_ALIASING) | ||||
.if ${CC} != "icc" | .if ${CC} != "icc" | ||||
.if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing) | .if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing) | ||||
CFLAGS+= -fno-strict-aliasing | CFLAGS+= -fno-strict-aliasing | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if defined(USE_CSTD) | .for lang in C CXX | ||||
CFLAGS:= ${CFLAGS:N-std=*} -std=${USE_CSTD} | .if defined(USE_${lang}STD) | ||||
${lang}FLAGS:= ${${lang}FLAGS:N-std=*} -std=${USE_${lang}STD} | |||||
.endif | .endif | ||||
.if defined(CFLAGS_${ARCH}) | .if defined(${lang}FLAGS_${ARCH}) | ||||
CFLAGS+= ${CFLAGS_${ARCH}} | ${lang}FLAGS+= ${${lang}FLAGS_${ARCH}} | ||||
.endif | .endif | ||||
.endfor | |||||
.if defined(USE_CXXSTD) | |||||
CXXFLAGS:= ${CXXFLAGS:N-std=*} -std=${USE_CXXSTD} | |||||
.endif | |||||
.if defined(CXXFLAGS_${ARCH}) | |||||
CXXFLAGS+= ${CXXFLAGS_${ARCH}} | |||||
.endif | |||||
# Multiple make jobs support | # Multiple make jobs support | ||||
.if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE) | .if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE) | ||||
_MAKE_JOBS= # | _MAKE_JOBS= # | ||||
MAKE_JOBS_NUMBER= 1 | MAKE_JOBS_NUMBER= 1 | ||||
.else | .else | ||||
.if defined(MAKE_JOBS_NUMBER) | .if defined(MAKE_JOBS_NUMBER) | ||||
_MAKE_JOBS_NUMBER:= ${MAKE_JOBS_NUMBER} | _MAKE_JOBS_NUMBER:= ${MAKE_JOBS_NUMBER} | ||||
▲ Show 20 Lines • Show All 4,144 Lines • Show Last 20 Lines |