22 |
|
|
23 |
# 1=bootstrap the whole gcc suite, using bootstrap-lean method |
# 1=bootstrap the whole gcc suite, using bootstrap-lean method |
24 |
# 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 |
25 |
GCC_BOOTSTRAP="0" |
GCC_BOOTSTRAP="1" |
26 |
|
|
27 |
# 1=bootstrap ada, using precompiled gnat binaries |
# 1=bootstrap ada, using precompiled gnat binaries |
28 |
# 0=no bootstrap, build ada with system gnat - requires sys-dev/gcc-gnat |
# 0=no bootstrap, build ada with system gnat - requires sys-dev/gcc-gnat |
898 |
#myconf+=" --with-plugin-ld=ld.gold" |
#myconf+=" --with-plugin-ld=ld.gold" |
899 |
#myconf+=" --enable-ld=default" |
#myconf+=" --enable-ld=default" |
900 |
|
|
901 |
|
# use the old default c++ abi until LLVM is fixed |
902 |
|
# later we switch to c++11 |
903 |
|
# see: http://allanmcrae.com/2015/06/the-case-of-gcc-5-1-and-the-two-c-abis/ |
904 |
|
myconf+=" --with-default-libstdcxx-abi=c++98" |
905 |
|
|
906 |
# gcc >= 4.3 has now configure flags for uri and version - yeah! |
# gcc >= 4.3 has now configure flags for uri and version - yeah! |
907 |
AR=ar \ |
AR=ar \ |
908 |
../configure \ |
../configure \ |
931 |
--enable-lto \ |
--enable-lto \ |
932 |
--enable-plugin \ |
--enable-plugin \ |
933 |
--enable-linker-build-id \ |
--enable-linker-build-id \ |
|
--with-default-libstdcxx-abi=c++98 \ |
|
934 |
--disable-werror \ |
--disable-werror \ |
935 |
${myconf} \ |
${myconf} \ |
936 |
|| die |
|| die |
1140 |
# versionize all bins and symlink them |
# versionize all bins and symlink them |
1141 |
versionize_all_bins || die |
versionize_all_bins || die |
1142 |
|
|
1143 |
mlink ../usr/bin/cpp-${PVER} /usr/$(mlibdir)/cpp || die |
mlink ../bin/cpp-${PVER} /usr/$(mlibdir)/cpp || die |
1144 |
# this one is needed on multilib systems. |
# this one is needed on multilib systems. |
1145 |
# rpcgen may not find the cpp compiler correctly if not in /lib/cpp |
# rpcgen may not find the cpp compiler correctly if not in /lib/cpp |
1146 |
if [[ $(mlibdir) != lib ]] |
if [[ $(mlibdir) != lib ]] |
1147 |
then |
then |
1148 |
minstalldir /usr/lib || die |
minstalldir /usr/lib || die |
1149 |
mlink ../usr/bin/cpp-${PVER} /usr/lib/cpp || die |
mlink ../bin/cpp-${PVER} /usr/lib/cpp || die |
1150 |
fi |
fi |
1151 |
mlink gcc-${PVER} /usr/bin/cc || die |
mlink gcc-${PVER} /usr/bin/cc || die |
1152 |
|
|