Rework the architecture-specific special settings, sorting snippets and

using .elif instead of distinct .if sequences, similar to most of the
other lang/gcc* ports by now. (This being the default port we usually
let changes settle elsewhere first.)
This commit is contained in:
Gerald Pfeifer 2017-11-25 22:52:32 +00:00
parent 92f4e1a8bf
commit 2b1a40d90f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=454900

View file

@ -66,14 +66,8 @@ CONFIGURE_ARGS+= --disable-multilib
.if ${ARCH} == amd64
CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL}
.endif
.if ${ARCH} == powerpc64
CONFIGURE_ENV+= UNAME_m="powerpc64"
USE_GCC= 5 # Cannot require ourselves, needs to be at least 4.9.
.endif
.if ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7
.elif ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7
. if ${COMPILER_TYPE} == clang
. if empty(PORT_OPTIONS:MBOOTSTRAP)
MAKE_ARGS+=CXXFLAGS=-fbracket-depth=512
@ -81,6 +75,10 @@ MAKE_ARGS+=CXXFLAGS=-fbracket-depth=512
MAKE_ARGS+=STAGE1_CXXFLAGS=-fbracket-depth=512
. endif
. endif
.elif ${ARCH} == powerpc64
CONFIGURE_ENV+= UNAME_m="powerpc64"
USE_GCC= 5 # Cannot require ourselves, needs to be at least 4.9.
.endif
LANGUAGES:= c,c++,objc,fortran