Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/bsd.prog.mk
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
TAG_ARGS= -T ${TAGS:[*]:S/ /,/g} | TAG_ARGS= -T ${TAGS:[*]:S/ /,/g} | ||||
.endif | .endif | ||||
.if defined(NO_SHARED) && ${NO_SHARED:tl} != "no" | .if defined(NO_SHARED) && ${NO_SHARED:tl} != "no" | ||||
LDFLAGS+= -static | LDFLAGS+= -static | ||||
.endif | .endif | ||||
# clang currently defaults to dynamic TLS for mips64 binaries | |||||
.if ${MACHINE_ARCH:Mmips64*} && ${COMPILER_TYPE} == "clang" | |||||
CFLAGS+= -ftls-model=initial-exec | |||||
.endif | |||||
.if ${MK_DEBUG_FILES} != "no" | .if ${MK_DEBUG_FILES} != "no" | ||||
PROG_FULL=${PROG}.full | PROG_FULL=${PROG}.full | ||||
# Use ${DEBUGDIR} for base system debug files, else .debug subdirectory | # Use ${DEBUGDIR} for base system debug files, else .debug subdirectory | ||||
.if defined(BINDIR) && (\ | .if defined(BINDIR) && (\ | ||||
${BINDIR} == "/bin" ||\ | ${BINDIR} == "/bin" ||\ | ||||
${BINDIR:C%/libexec(/.*)?%/libexec%} == "/libexec" ||\ | ${BINDIR:C%/libexec(/.*)?%/libexec%} == "/libexec" ||\ | ||||
${BINDIR} == "/sbin" ||\ | ${BINDIR} == "/sbin" ||\ | ||||
${BINDIR:C%/usr/(bin|bsdinstall|libexec|lpr|sendmail|sm.bin|sbin|tests)(/.*)?%/usr/bin%} == "/usr/bin" ||\ | ${BINDIR:C%/usr/(bin|bsdinstall|libexec|lpr|sendmail|sm.bin|sbin|tests)(/.*)?%/usr/bin%} == "/usr/bin" ||\ | ||||
▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines |