mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
sys/conf: Remove an unneeded flag variable
After commit fac6dee9eb
("Remove tests for obsolete compilers in the
build system"), we always set -fdebug-prefix-map, so there's no point in
defining and testing _MAP_DEBUG_PREFIX. No functional change intended.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
57cc96f49e
commit
ab8b2d108c
|
@ -351,8 +351,6 @@ ${__obj}: ${OBJS_DEPEND_GUESS.${__obj}}
|
|||
|
||||
.depend: .PRECIOUS ${SRCS}
|
||||
|
||||
_MAP_DEBUG_PREFIX= yes
|
||||
|
||||
_ILINKS= machine
|
||||
.if ${MACHINE} != ${MACHINE_CPUARCH} && ${MACHINE} != "arm64"
|
||||
_ILINKS+= ${MACHINE_CPUARCH}
|
||||
|
@ -370,13 +368,11 @@ _ILINKS+= i386
|
|||
.if !exists(${.OBJDIR}/${_link})
|
||||
${SRCS} ${DEPENDOBJS}: ${_link}
|
||||
.endif
|
||||
.if defined(_MAP_DEBUG_PREFIX)
|
||||
.if ${_link} == "machine"
|
||||
CFLAGS+= -fdebug-prefix-map=./machine=${SYSDIR}/${MACHINE}/include
|
||||
.else
|
||||
CFLAGS+= -fdebug-prefix-map=./${_link}=${SYSDIR}/${_link}/include
|
||||
.endif
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
${_ILINKS}:
|
||||
|
|
|
@ -281,8 +281,6 @@ ${FULLPROG}: ${OBJS} ${BLOB_OBJS}
|
|||
${OBJCOPY} --strip-debug ${.TARGET}
|
||||
.endif
|
||||
|
||||
_MAP_DEBUG_PREFIX= yes
|
||||
|
||||
_ILINKS=machine
|
||||
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
|
||||
_ILINKS+=x86
|
||||
|
@ -304,13 +302,11 @@ beforebuild: ${_ILINKS}
|
|||
.if !exists(${.OBJDIR}/${_link})
|
||||
OBJS_DEPEND_GUESS+= ${_link}
|
||||
.endif
|
||||
.if defined(_MAP_DEBUG_PREFIX)
|
||||
.if ${_link} == "machine"
|
||||
CFLAGS+= -fdebug-prefix-map=./machine=${SYSDIR}/${MACHINE}/include
|
||||
.else
|
||||
CFLAGS+= -fdebug-prefix-map=./${_link}=${SYSDIR}/${_link}/include
|
||||
.endif
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
.NOPATH: ${_ILINKS}
|
||||
|
|
Loading…
Reference in a new issue