Skip to content

Commit

Permalink
devel/gcc-arm-embedded: Fix build on 14
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Aug 18, 2023
1 parent abccbbe commit 79ef06b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devel/gcc-arm-embedded/Makefile
Expand Up @@ -101,6 +101,10 @@ VAR_TO_SUBMAKE_NOEXPAND= CONFIGURE_ENV MAKE_ENV
#IGNORE= PURE option is not valid anymore, no libraries are bundled
#.endif

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
USE_GCC= yes
.endif

post-extract:
.if ${PORT_OPTIONS:MPURE}
.for L in ${BUNDLED_LIBS}
Expand Down
4 changes: 4 additions & 0 deletions devel/gcc-arm-embedded/files/Makefile
Expand Up @@ -19,9 +19,13 @@ WORLD_LIB=${LOCALBASE}

LDFLAGS+= -L${WORLD_LIB}/lib

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
MAKE_ARGS+= CFLAGS="-Wno-error -Wno-deprecated-register" CXXFLAGS="-Wno-error -Wno-deprecated-register"
.else
.if ${CHOSEN_COMPILER_TYPE} == clang
MAKE_ARGS+= CFLAGS="-Wno-error -fbracket-depth=512 -Wno-deprecated-register" CXXFLAGS="-Wno-error -fbracket-depth=512 -Wno-deprecated-register"
.endif
.endif

MISC_DOCS= license.txt readme.txt release.txt

Expand Down

0 comments on commit 79ef06b

Please sign in to comment.