Skip to content

Commit

Permalink
Build Senna with OBGGCC
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed Jul 5, 2023
1 parent b01cb1e commit e3850d3
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if ! [ -f "${binutils_tarball}" ]; then
fi

if ! [ -f "${gcc_tarball}" ]; then
wget --no-verbose 'https://ftp.gnu.org/gnu/gcc/gcc-13.1.0/gcc-13.1.0.tar.xz' --output-document="${gcc_tarball}"
wget --no-verbose 'https://mirrors.kernel.org/gnu/gcc/gcc-13.1.0/gcc-13.1.0.tar.xz' --output-document="${gcc_tarball}"
tar --directory="$(dirname "${gcc_directory}")" --extract --file="${gcc_tarball}"
fi

Expand Down Expand Up @@ -152,6 +152,11 @@ for target in "${targets[@]}"; do
--enable-lto \
--disable-gprofng \
--with-static-standard-libraries \
--disable-werror \
--disable-gdb \
--disable-nls \
--enable-libiberty \
--with-sysroot="${toolchain_directory}/${target}" \
CFLAGS="${optflags}" \
CXXFLAGS="${optflags}" \
LDFLAGS="${linkflags}"
Expand All @@ -177,7 +182,7 @@ for target in "${targets[@]}"; do
--enable-__cxa_atexit \
--enable-cet='auto' \
--enable-checking='release' \
--enable-clocale='gnu' \
--enable-clocale='newlib' \
--enable-default-ssp \
--enable-gnu-indirect-function \
--enable-gnu-unique-object \
Expand All @@ -190,19 +195,19 @@ for target in "${targets[@]}"; do
--enable-threads='posix' \
--enable-libssp \
--enable-languages='c,c++' \
--enable-ld \
--enable-gold \
--disable-libgomp \
--disable-bootstrap \
--disable-multilib \
--disable-libstdcxx-pch \
--disable-werror \
--disable-nls \
--without-headers \
--enable-ld \
--enable-gold \
--with-gcc-major-version-only \
--with-pkgversion="Senna v0.1-${revision}" \
--with-sysroot="${toolchain_directory}/${target}" \
--with-native-system-header-dir='/include' \
--disable-nls \
CFLAGS="${optflags}" \
CXXFLAGS="${optflags}" \
LDFLAGS="-Wl,-rpath-link,${OBGGCC_TOOLCHAIN}/${CROSS_COMPILE_TRIPLET}/lib"
Expand Down

0 comments on commit e3850d3

Please sign in to comment.