Skip to content

Commit

Permalink
mk: Use illumos GCCs from pkgsrc-{extra,joyent}.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Perkin authored and github-actions[bot] committed Nov 15, 2024
1 parent 23b6c3d commit 682edfd
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions mk/compiler/gcc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -810,13 +810,13 @@ _USE_GCC_SHLIB?= yes
# We require gcc-9.x in the lang/gcc9-* directory.
#
_GCC_PKGBASE= gcc9
. if ${PKGPATH} == lang/gcc9
. if ${PKGPATH} == joyent/gcc9
_IGNORE_GCC= yes
MAKEFLAGS+= _IGNORE_GCC=yes
. endif
. if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc)
_GCC_PKGSRCDIR= ../../lang/gcc9
_GCC_DEPENDENCY= gcc9>=${_GCC_REQD}:../../lang/gcc9
_GCC_PKGSRCDIR= ../../joyent/gcc9
_GCC_DEPENDENCY= gcc9>=${_GCC_REQD}:../../joyent/gcc9
. if !empty(_LANGUAGES.gcc:Mc++) || \
!empty(_LANGUAGES.gcc:Mfortran) || \
!empty(_LANGUAGES.gcc:Mfortran77) || \
Expand All @@ -831,13 +831,13 @@ _USE_GCC_SHLIB?= yes
# We require gcc-10.x in the lang/gcc10-* directory.
#
_GCC_PKGBASE= gcc10
. if ${PKGPATH} == lang/gcc10
. if ${PKGPATH} == joyent/gcc10
_IGNORE_GCC= yes
MAKEFLAGS+= _IGNORE_GCC=yes
. endif
. if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc)
_GCC_PKGSRCDIR= ../../lang/gcc10
_GCC_DEPENDENCY= gcc10>=${_GCC_REQD}:../../lang/gcc10
_GCC_PKGSRCDIR= ../../joyent/gcc10
_GCC_DEPENDENCY= gcc10>=${_GCC_REQD}:../../joyent/gcc10
. if !empty(_LANGUAGES.gcc:Mc++) || \
!empty(_LANGUAGES.gcc:Mfortran) || \
!empty(_LANGUAGES.gcc:Mfortran77) || \
Expand All @@ -852,13 +852,13 @@ _USE_GCC_SHLIB?= yes
# We require gcc-12.x in the lang/gcc12-* directory.
#
_GCC_PKGBASE= gcc12
. if ${PKGPATH} == lang/gcc12
. if ${PKGPATH} == extra/gcc12
_IGNORE_GCC= yes
MAKEFLAGS+= _IGNORE_GCC=yes
. endif
. if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc)
_GCC_PKGSRCDIR= ../../lang/gcc12
_GCC_DEPENDENCY= gcc12>=${_GCC_REQD}:../../lang/gcc12
_GCC_PKGSRCDIR= ../../extra/gcc12
_GCC_DEPENDENCY= gcc12>=${_GCC_REQD}:../../extra/gcc12
. if !empty(_LANGUAGES.gcc:Mc++) || \
!empty(_LANGUAGES.gcc:Mfortran) || \
!empty(_LANGUAGES.gcc:Mfortran77) || \
Expand All @@ -873,13 +873,13 @@ _USE_GCC_SHLIB?= yes
# We require gcc-13.x in the lang/gcc13-* directory.
#
_GCC_PKGBASE= gcc13
. if ${PKGPATH} == lang/gcc13
. if ${PKGPATH} == extra/gcc13
_IGNORE_GCC= yes
MAKEFLAGS+= _IGNORE_GCC=yes
. endif
. if !defined(_IGNORE_GCC) && !empty(_LANGUAGES.gcc)
_GCC_PKGSRCDIR= ../../lang/gcc13
_GCC_DEPENDENCY= gcc13>=${_GCC_REQD}:../../lang/gcc13
_GCC_PKGSRCDIR= ../../extra/gcc13
_GCC_DEPENDENCY= gcc13>=${_GCC_REQD}:../../extra/gcc13
. if !empty(_LANGUAGES.gcc:Mc++) || \
!empty(_LANGUAGES.gcc:Mfortran) || \
!empty(_LANGUAGES.gcc:Mfortran77) || \
Expand Down Expand Up @@ -1235,6 +1235,8 @@ PREPEND_PATH+= ${_GCC_DIR}/bin
.if (defined(_USE_GCC_SHLIB) && !empty(_USE_GCC_SHLIB:M[Yy][Ee][Ss])) && !empty(USE_PKGSRC_GCC_RUNTIME:M[Yy][Ee][Ss])
# Special case packages which are themselves a dependency of gcc runtime.
. if ${PKGPATH} != devel/binutils && \
empty(PKGPATH:Mjoyent/gcc?) && empty(PKGPATH:Mjoyent/gcc??) && \
empty(PKGPATH:Mextra/gcc?) && empty(PKGPATH:Mextra/gcc??) && \
empty(PKGPATH:Mlang/gcc4?) && empty(PKGPATH:Mlang/gcc[5-9]) && \
empty(PKGPATH:Mlang/gcc10) && empty(PKGPATH:Mlang/gcc12) && \
empty(PKGPATH:Mlang/gcc13) && empty(PKGPATH:Mlang/gcc14)
Expand All @@ -1245,13 +1247,13 @@ PREPEND_PATH+= ${_GCC_DIR}/bin
. elif !empty(_GCC_PKGBASE:Mgcc8)
. include "../../lang/gcc8-libs/buildlink3.mk"
. elif !empty(_GCC_PKGBASE:Mgcc9)
. include "../../lang/gcc9-libs/buildlink3.mk"
. include "../../joyent/gcc9-libs/buildlink3.mk"
. elif !empty(_GCC_PKGBASE:Mgcc10)
. include "../../lang/gcc10-libs/buildlink3.mk"
. include "../../joyent/gcc10-libs/buildlink3.mk"
. elif !empty(_GCC_PKGBASE:Mgcc12)
. include "../../lang/gcc12-libs/buildlink3.mk"
. include "../../extra/gcc12-libs/buildlink3.mk"
. elif !empty(_GCC_PKGBASE:Mgcc13)
. include "../../lang/gcc13-libs/buildlink3.mk"
. include "../../extra/gcc13-libs/buildlink3.mk"
. elif !empty(_GCC_PKGBASE:Mgcc14)
. include "../../lang/gcc14-libs/buildlink3.mk"
. else
Expand Down

0 comments on commit 682edfd

Please sign in to comment.