git: 79ef06b046e4 - main - devel/gcc-arm-embedded: Fix build on 14
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Aug 2023 02:57:18 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=79ef06b046e40e03684a98241d138169863579f2 commit 79ef06b046e40e03684a98241d138169863579f2 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-18 00:53:18 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-18 02:57:09 +0000 devel/gcc-arm-embedded: Fix build on 14 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- devel/gcc-arm-embedded/Makefile | 4 ++++ devel/gcc-arm-embedded/files/Makefile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/devel/gcc-arm-embedded/Makefile b/devel/gcc-arm-embedded/Makefile index 1af3d67b5cee..31d7e9deed83 100644 --- a/devel/gcc-arm-embedded/Makefile +++ b/devel/gcc-arm-embedded/Makefile @@ -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} diff --git a/devel/gcc-arm-embedded/files/Makefile b/devel/gcc-arm-embedded/files/Makefile index 145fe00d633e..2a74e6f32bec 100644 --- a/devel/gcc-arm-embedded/files/Makefile +++ b/devel/gcc-arm-embedded/files/Makefile @@ -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