Skip to content

Commit

Permalink
WIP: add gcc module
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Dong committed Jul 3, 2018
1 parent b34fd30 commit 84d8956
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions module/gcc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/echo Use "./mkroot.sh dropbear"

# Example overlay file, adding dropbear (which requires zlib)

echo === download source

download 810fb70bd721e1d9f446b6503afe0a9088b62986 \
https://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2

[ -z "$TARGET" ] && TARGET="${CROSS_BASE/-*/}"
[ -z "$TARGET" ] && TARGET="$(uname -m)"

setupfor gcc
./contrib/download_prerequisites &&
mkdir build &&
cd build &&
../configure \
--prefix=/tools \
--target="$TARGET" \
--with-sysroot="$ROOT" \
--with-newlib \
--without-headers \
--with-local-prefix=/tools \
--with-native-system-header-dir=/tools/include \
--disable-nls \
--disable-shared \
--disable-multilib \
--disable-decimal-float \
--disable-threads \
--disable-libatomic \
--disable-libgomp \
--disable-libitm \
--disable-libmudflap \
--disable-libquadmath \
--disable-libsanitizer \
--disable-libssp \
--disable-libstdc++-v3 \
--enable-languages=c,c++ &&
make -j &&
make install
cleanup

0 comments on commit 84d8956

Please sign in to comment.