Minor clean up
* Separate out compiler specifics from platform specifics. This also removes a little duplication.
This commit is contained in:
parent
b3d5320afa
commit
de71759143
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=511031
1 changed files with 2 additions and 4 deletions
|
@ -122,16 +122,14 @@ CONFIGURE_ARGS+= --with-toolchain-type=${COMPILER_TYPE}
|
|||
|
||||
.if ${COMPILER_TYPE} == gcc
|
||||
USE_GCC= yes
|
||||
CONFIGURE_ARGS+= --disable-warnings-as-errors \
|
||||
--disable-dtrace \
|
||||
--with-extra-ldflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT} -L${LOCALBASE}/lib/gcc${GCC_DEFAULT}" \
|
||||
CONFIGURE_ARGS+= --with-extra-ldflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT} -L${LOCALBASE}/lib/gcc${GCC_DEFAULT}" \
|
||||
--with-extra-cflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT}" \
|
||||
--with-extra-cxxflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFAULT}"
|
||||
.else
|
||||
MAKE_ENV+= USE_CLANG=true
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == aarch64
|
||||
.if ${ARCH} == aarch64 || ${ARCH} == powerpc64
|
||||
CONFIGURE_ARGS+= --disable-warnings-as-errors \
|
||||
--disable-dtrace
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue