Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/bsd.sys.mk
Show First 20 Lines • Show All 278 Lines • ▼ Show 20 Lines | |||||
.if defined(SRCTOP) | .if defined(SRCTOP) | ||||
# Prevent rebuilding during install to support read-only objdirs. | # Prevent rebuilding during install to support read-only objdirs. | ||||
.if ${.TARGETS:M*install*} == ${.TARGETS} && empty(.MAKE.MODE:Mmeta) | .if ${.TARGETS:M*install*} == ${.TARGETS} && empty(.MAKE.MODE:Mmeta) | ||||
CFLAGS+= ERROR-tried-to-rebuild-during-make-install | CFLAGS+= ERROR-tried-to-rebuild-during-make-install | ||||
.endif | .endif | ||||
.endif | .endif | ||||
# Please keep this if in sync with kern.mk | |||||
.if ${LD} != "ld" && (${CC:[1]:H} != ${LD:[1]:H} || ${LD:[1]:T} != "ld") | |||||
# Add -fuse-ld=${LD} if $LD is in a different directory or not called "ld". | |||||
# Note: Clang 12+ will prefer --ld-path= over -fuse-ld=. | |||||
.if ${COMPILER_TYPE} == "clang" | |||||
LDFLAGS+= -fuse-ld=${LD:[1]} | |||||
.else | |||||
# GCC does not support an absolute path for -fuse-ld so we just print this | |||||
# warning instead and let the user add the required symlinks. | |||||
.warning LD (${LD}) is not the default linker for ${CC} but -fuse-ld= is not supported | |||||
.endif | |||||
.endif | |||||
# Tell bmake not to mistake standard targets for things to be searched for | # Tell bmake not to mistake standard targets for things to be searched for | ||||
# or expect to ever be up-to-date. | # or expect to ever be up-to-date. | ||||
PHONY_NOTMAIN = analyze afterdepend afterinstall all beforedepend beforeinstall \ | PHONY_NOTMAIN = analyze afterdepend afterinstall all beforedepend beforeinstall \ | ||||
beforelinking build build-tools buildconfig buildfiles \ | beforelinking build build-tools buildconfig buildfiles \ | ||||
buildincludes check checkdpadd clean cleandepend cleandir \ | buildincludes check checkdpadd clean cleandepend cleandir \ | ||||
cleanobj configure depend distclean distribute exe \ | cleanobj configure depend distclean distribute exe \ | ||||
files html includes install installconfig installdirs \ | files html includes install installconfig installdirs \ | ||||
installfiles installincludes lint obj objlink objs objwarn \ | installfiles installincludes lint obj objlink objs objwarn \ | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |