mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
Simplify the logic by removing a variable (_GCC_PORT_DEPENDS) and
instead use two equivalent ones (depending on the circumstances).
This commit is contained in:
parent
773d8b5852
commit
8b7545172d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=531271
@ -95,7 +95,6 @@ _USE_GCC:= ${GCC_DEFAULT}
|
||||
# A concrete version has been selected. Set proper ports dependencies,
|
||||
# CC, CXX, CPP, and flags.
|
||||
V:= ${_USE_GCC:S/.//}
|
||||
_GCC_PORT_DEPENDS:= gcc${V}
|
||||
_GCC_PORT:= gcc${V}
|
||||
CC:= gcc${V}
|
||||
CXX:= g++${V}
|
||||
@ -117,11 +116,11 @@ LDFLAGS+= -Wl,-rpath=${_GCC_RUNTIME} -L${_GCC_RUNTIME}
|
||||
CFLAGS:= ${CFLAGS:N-mretpoline}
|
||||
CXXFLAGS:= ${CXXFLAGS:N-mretpoline}
|
||||
|
||||
.if defined(_GCC_PORT_DEPENDS)
|
||||
BUILD_DEPENDS+= ${_GCC_PORT_DEPENDS}:lang/${_GCC_PORT}
|
||||
RUN_DEPENDS+= ${_GCC_PORT_DEPENDS}:lang/${_GCC_PORT}
|
||||
# Later GCC ports already depend on binutils; make sure whatever we
|
||||
# build leverages this as well.
|
||||
.if defined(_GCC_PORT)
|
||||
BUILD_DEPENDS+= ${CC}:lang/${_GCC_PORT}
|
||||
RUN_DEPENDS+= ${CC}:lang/${_GCC_PORT}
|
||||
# GCC ports already depend on binutils; make sure whatever we build
|
||||
# leverages this as well.
|
||||
USE_BINUTILS= yes
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user