Magellan Linux

Diff of /trunk/core/gcc/gcc-9.1.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 32911 by niro, Tue Jul 16 21:44:09 2019 UTC revision 32912 by niro, Wed Jul 24 06:25:12 2019 UTC
# Line 28  sminclude mtools cleanutils libtool gcc- Line 28  sminclude mtools cleanutils libtool gcc-
28  # linux-libc-headers -> binutils -> libc -> gcc -> binutils -> gcc -> libc  # linux-libc-headers -> binutils -> libc -> gcc -> binutils -> gcc -> libc
29  #  #
30  # dropped java/gcj beginning with year 2017  # dropped java/gcj beginning with year 2017
31  MyLanguages=c,c++,ada,fortran,go,objc,obj-c++,lto  MyLanguages=c,c++,fortran,go,objc,obj-c++,lto
32    
33  # 1=bootstrap the whole gcc suite, using bootstrap-lean method  # 1=bootstrap the whole gcc suite, using bootstrap-lean method
34  # 0=no bootstrap, use this only for quick builds to test something but never for release  # 0=no bootstrap, use this only for quick builds to test something but never for release
# Line 161  then Line 161  then
161   ADA_DEPEND="${COMMON_DEPEND}"   ADA_DEPEND="${COMMON_DEPEND}"
162   if [[ ${ADA_BOOTSTRAP} = 1 ]]   if [[ ${ADA_BOOTSTRAP} = 1 ]]
163   then   then
164   GNAT_BIN_x86="gnatboot-4.3-i686.tar.bz2"   GNAT_BIN_x86="gnatboot-7.2-i686.tar.xz"
165   GNAT_BIN_x86_64="gnatboot-4.3-amd64.tar.bz2"   GNAT_BIN_x86_64="gnatboot-7.2-amd64.tar.xz"
166   GNAT_BIN="$(eval echo \$GNAT_BIN_${ARCH/i*86/x86})"   GNAT_BIN="$(eval echo \$GNAT_BIN_${ARCH/i*86/x86})"
167   GNAT_BIN_SRCDIR="${BUILDDIR}/gnat"   GNAT_BIN_SRCDIR="${BUILDDIR}/gnat"
168   SRC_URI+=( mirror://${_BASENAME}/${GNAT_BIN_x86} )   SRC_URI+=( mirror://${_BASENAME}/${GNAT_BIN_x86} )
# Line 773  src_compile() Line 773  src_compile()
773   then   then
774   # export binary gnat pathes   # export binary gnat pathes
775   export PATH="${GNAT_BIN_SRCDIR}/usr/bin:${PATH}"   export PATH="${GNAT_BIN_SRCDIR}/usr/bin:${PATH}"
776   export CC="${GNAT_BIN_SRCDIR}/usr/bin/gnatgcc"   export CC="${GNAT_BIN_SRCDIR}/usr/bin/gcc"
777   # CPATH is supposed to be applied for any language, thus   # CPATH is supposed to be applied for any language, thus
778   # superseding either of C/CPLUS/OBJC_INCLUDE_PATHs   # superseding either of C/CPLUS/OBJC_INCLUDE_PATHs
779   export CPATH="${GNAT_BIN_SRCDIR}/usr/lib/include"   export CPATH="${GNAT_BIN_SRCDIR}/usr/lib/include"
# Line 856  src_compile() Line 856  src_compile()
856   # see: http://allanmcrae.com/2015/06/the-case-of-gcc-5-1-and-the-two-c-abis/   # see: http://allanmcrae.com/2015/06/the-case-of-gcc-5-1-and-the-two-c-abis/
857  # myconf+=" --with-default-libstdcxx-abi=gcc4-compatible"  # myconf+=" --with-default-libstdcxx-abi=gcc4-compatible"
858    
859     myconf+=" --enable-multilib"
860    
861   # gcc >= 4.3 has now configure flags for uri and version - yeah!   # gcc >= 4.3 has now configure flags for uri and version - yeah!
862   AR=ar \   AR=ar \
863   ../configure \   ../configure \
# Line 1466  then Line 1468  then
1468   minstallexec gcc/jvgenmain /usr/$(mlibdir)/gcc/${CHOST}/${PVER}/ || die   minstallexec gcc/jvgenmain /usr/$(mlibdir)/gcc/${CHOST}/${PVER}/ || die
1469    
1470   # remove libraries and files already included elsewhere   # remove libraries and files already included elsewhere
1471   mmake -C ${CHOST}/libjava DESTDIR=${BINDIR} uninstall-toolexeclibLTLIBRARIES || die   uninstall_gcc_library "libjava" || die
1472   mdelete /usr/$(mlibdir)/libgcj_bc.so\* || die   mdelete /usr/$(mlibdir)/libgcj_bc.so\* || die
1473   if [[ $(mlibdir) != lib ]]   if [[ $(mlibdir) != lib ]]
1474   then   then
1475   # with >= gcc-6.1 this one only applies when libjava was a mulitlib build   # with >= gcc-6.1 this one only applies when libjava was a mulitlib build
1476   if [[ -d ${CHOST}/32/libjava ]]   if [[ -d ${CHOST}/32/libjava ]]
1477   then   then
  mmake -C ${CHOST}/32/libjava DESTDIR=${BINDIR} uninstall-toolexeclibLTLIBRARIES || die  
1478   mdelete /usr/lib/libgcj_bc.so\* || die   mdelete /usr/lib/libgcj_bc.so\* || die
1479   fi   fi
1480   fi   fi
# Line 1586  if lang_enabled fortran Line 1587  if lang_enabled fortran
1587  then  then
1588   src_install_libgfortran-common()   src_install_libgfortran-common()
1589   {   {
1590     install_gcc_library "libquadmath"
1591   install_gcc_library "libgfortran"   install_gcc_library "libgfortran"
1592     uninstall_gcc_library "libquadmath"
1593   }   }
1594    
1595   src_install_libgfortran()   src_install_libgfortran()
# Line 1683  then Line 1686  then
1686   minstallexec gcc/go1 /usr/$(mlibdir)/gcc/${CHOST}/${PVER}/ || die   minstallexec gcc/go1 /usr/$(mlibdir)/gcc/${CHOST}/${PVER}/ || die
1687    
1688   # remove libraries already included elsewhere   # remove libraries already included elsewhere
1689   mmake -C ${CHOST}/libgo DESTDIR=${BINDIR} uninstall-toolexeclibLTLIBRARIES || die   uninstall_gcc_library "libgo" || die
1690   mmake -C ${CHOST}/libatomic DESTDIR=${BINDIR} uninstall-toolexeclibLTLIBRARIES || die   uninstall_gcc_library "libatomic" || die
  if [[ $(mlibdir) != lib ]]  
  then  
  mmake -C ${CHOST}/32/libgo DESTDIR=${BINDIR} uninstall-toolexeclibLTLIBRARIES || die  
  mmake -C ${CHOST}/32/libatomic DESTDIR=${BINDIR} uninstall-toolexeclibLTLIBRARIES || die  
  fi  
1691    
1692   # versionize all bins and symlink them   # versionize all bins and symlink them
1693   versionize_all_bins || die   versionize_all_bins || die

Legend:
Removed from v.32911  
changed lines
  Added in v.32912