Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.lib.mk
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | |||||
.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} | ||||
CXXFLAGS+= ${DEBUG_FILES_CFLAGS} | CXXFLAGS+= ${DEBUG_FILES_CFLAGS} | ||||
CTFFLAGS+= -g | CTFFLAGS+= -g | ||||
.endif | .endif | ||||
# clang currently defaults to dynamic TLS for mips64 object files without -fPIC | |||||
.if ${MACHINE_ARCH:Mmips64*} && ${COMPILER_TYPE} == "clang" | |||||
STATIC_CFLAGS+= -ftls-model=initial-exec | |||||
STATIC_CXXFLAGS+= -ftls-model=initial-exec | |||||
.endif | |||||
.include <bsd.libnames.mk> | .include <bsd.libnames.mk> | ||||
# prefer .s to a .c, add .po, remove stuff not used in the BSD libraries | # prefer .s to a .c, add .po, remove stuff not used in the BSD libraries | ||||
# .pico used for PIC object files | # .pico used for PIC object files | ||||
# .nossppico used for NOSSP PIC object files | # .nossppico used for NOSSP PIC object files | ||||
# .pieo used for PIE object files | # .pieo used for PIE object files | ||||
.SUFFIXES: .out .o .bc .ll .po .pico .nossppico .pieo .S .asm .s .c .cc .cpp .cxx .C .f .y .l .ln | .SUFFIXES: .out .o .bc .ll .po .pico .nossppico .pieo .S .asm .s .c .cc .cpp .cxx .C .f .y .l .ln | ||||
▲ Show 20 Lines • Show All 449 Lines • Show Last 20 Lines |