View | Details | Raw Unified | Return to bug 253275
Collapse All | Expand All

(-)b/share/mk/bsd.opts.mk (-1 / +21 lines)
Lines 75-81 Link Here
75
    INIT_ALL_PATTERN \
75
    INIT_ALL_PATTERN \
76
    INIT_ALL_ZERO \
76
    INIT_ALL_ZERO \
77
    INSTALL_AS_USER \
77
    INSTALL_AS_USER \
78
    PIE \
79
    RETPOLINE \
78
    RETPOLINE \
80
    STALE_STAGED
79
    STALE_STAGED
81
80
Lines 85-90 Link Here
85
    STAGING_PROG/STAGING \
84
    STAGING_PROG/STAGING \
86
    STALE_STAGED/STAGING \
85
    STALE_STAGED/STAGING \
87
86
87
#
88
# Default behaviour of some options depends on the architecture.  Unfortunately
89
# this means that we have to test TARGET_ARCH (the buildworld case) as well
90
# as MACHINE_ARCH (the non-buildworld case).  Normally TARGET_ARCH is not
91
# used at all in bsd.*.mk, but we have to make an exception here if we want
92
# to allow defaults for some things like clang to vary by target architecture.
93
# Additional, per-target behavior should be rarely added only after much
94
# gnashing of teeth and grinding of gears.
95
#
96
.if defined(TARGET_ARCH)
97
__T=${TARGET_ARCH}
98
.else
99
__T=${MACHINE_ARCH}
100
.endif
101
102
.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T:Mmips64*} || \\
103
    ${__T} == "powerpc64" || ${__T:Mriscv*}
104
__DEFAULT_YES_OPTIONS+=PIE
105
.else
106
__DEFAULT_NO_OPTIONS+=PIE
107
.endif
88
108
89
.include <bsd.mkopt.mk>
109
.include <bsd.mkopt.mk>
90
110
(-)b/share/mk/src.opts.mk (-15 lines)
Lines 243-263 Link Here
243
__DEFAULT_DEPENDENT_OPTIONS+= ${var}_SUPPORT/${var}
243
__DEFAULT_DEPENDENT_OPTIONS+= ${var}_SUPPORT/${var}
244
.endfor
244
.endfor
245
245
246
#
247
# Default behaviour of some options depends on the architecture.  Unfortunately
248
# this means that we have to test TARGET_ARCH (the buildworld case) as well
249
# as MACHINE_ARCH (the non-buildworld case).  Normally TARGET_ARCH is not
250
# used at all in bsd.*.mk, but we have to make an exception here if we want
251
# to allow defaults for some things like clang to vary by target architecture.
252
# Additional, per-target behavior should be rarely added only after much
253
# gnashing of teeth and grinding of gears.
254
#
255
.if defined(TARGET_ARCH)
256
__T=${TARGET_ARCH}
257
.else
258
__T=${MACHINE_ARCH}
259
.endif
260
261
# All supported backends for LLVM_TARGET_XXX
246
# All supported backends for LLVM_TARGET_XXX
262
__LLVM_TARGETS= \
247
__LLVM_TARGETS= \
263
		aarch64 \
248
		aarch64 \

Return to bug 253275