diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-09-22 13:49:00 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-09-22 13:49:00 +0200 |
commit | a648f8a13e468871f8a71bf5309b49829740d582 (patch) | |
tree | 73cdd0f4ee50036553f32b9663207b2e1d76c6b9 | |
parent | f1fc462e5c850062c74e8f7c5475400d35a5a083 (diff) |
build cgo as well
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rwxr-xr-x | build-gcc.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build-gcc.sh b/build-gcc.sh index da30e7d..e06da91 100755 --- a/build-gcc.sh +++ b/build-gcc.sh @@ -124,6 +124,7 @@ cd ${BIN_BUILD} --disable-multilib \ --prefix=${INSTALLDIR} \ --disable-nls \ + --enable-gold=default \ && sed -i 's|^MAKEINFO\s\+=\s\+makeinfo$|MAKEINFO = true|' ./Makefile \ && make -j3 \ && make install @@ -140,7 +141,7 @@ cd ../${GCC_BUILD} --enable-threads=posix \ --enable-__cxa_atexit \ --enable-clocale=gnu \ - --enable-languages=c,c++ \ + --enable-languages=c,c++,go \ --disable-multilib \ --with-system-zlib \ --enable-gold=yes \ @@ -157,7 +158,7 @@ cat << EOF > "${INSTALLDIR}/activate.sh" DIR="\$(realpath "\$(dirname "\${BASH_SOURCE}")")" echo "*** ROOT: \${DIR}" -export PATH="\${PATH}:\${DIR}/bin:\${DIR}/usr/bin" +export PATH="\${DIR}/bin:\${DIR}/usr/bin:\${PATH}" export CMAKE_C_COMPILER="\${DIR}/bin/gcc" export CMAKE_CXX_COMPILER="\${DIR}/bin/g++" export CC="\${CMAKE_C_COMPILER}" |