bsd.prog.mk (c06e7b66a147edf55f4241fbfbfa32856550cd15) bsd.prog.mk (14608708809b2357e0803a47773194313a169525)
1# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
2# $FreeBSD$
3
4.include <bsd.init.mk>
5.include <bsd.compiler.mk>
6
7.SUFFIXES: .out .o .bc .c .cc .cpp .cxx .C .m .y .l .ll .ln .s .S .asm
8

--- 27 unchanged lines hidden (view full) ---

36
37# ELF hardening knobs
38.if ${MK_BIND_NOW} != "no"
39LDFLAGS+= -Wl,-znow
40.endif
41.if ${MK_RETPOLINE} != "no"
42CFLAGS+= -mretpoline
43CXXFLAGS+= -mretpoline
1# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
2# $FreeBSD$
3
4.include <bsd.init.mk>
5.include <bsd.compiler.mk>
6
7.SUFFIXES: .out .o .bc .c .cc .cpp .cxx .C .m .y .l .ll .ln .s .S .asm
8

--- 27 unchanged lines hidden (view full) ---

36
37# ELF hardening knobs
38.if ${MK_BIND_NOW} != "no"
39LDFLAGS+= -Wl,-znow
40.endif
41.if ${MK_RETPOLINE} != "no"
42CFLAGS+= -mretpoline
43CXXFLAGS+= -mretpoline
44# retpolineplt is broken with static linking (PR 233336)
45.if !defined(NO_SHARED) || ${NO_SHARED} == "no" || ${NO_SHARED} == "NO"
44LDFLAGS+= -Wl,-zretpolineplt
45.endif
46LDFLAGS+= -Wl,-zretpolineplt
47.endif
48.endif
46
47.if defined(CRUNCH_CFLAGS)
48CFLAGS+=${CRUNCH_CFLAGS}
49.else
50.if ${MK_DEBUG_FILES} != "no" && empty(DEBUG_FLAGS:M-g) && \
51 empty(DEBUG_FLAGS:M-gdwarf-*)
52CFLAGS+= ${DEBUG_FILES_CFLAGS}
53CTFFLAGS+= -g

--- 276 unchanged lines hidden ---
49
50.if defined(CRUNCH_CFLAGS)
51CFLAGS+=${CRUNCH_CFLAGS}
52.else
53.if ${MK_DEBUG_FILES} != "no" && empty(DEBUG_FLAGS:M-g) && \
54 empty(DEBUG_FLAGS:M-gdwarf-*)
55CFLAGS+= ${DEBUG_FILES_CFLAGS}
56CTFFLAGS+= -g

--- 276 unchanged lines hidden ---