forked from pikhq/bootstrap-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgcc-4.2.1
29 lines (24 loc) · 776 Bytes
/
gcc-4.2.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name=gcc
url=http://ftp.gnu.org/gnu/gcc/gcc-$version/gcc-core-$version.tar.bz2
patches=gcc-4.2.1-musl.diff
out=$top/cross
config() {
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
rm -rf "$work/gcc-build"
mkdir "$work/gcc-build"
cd "$work/gcc-build"
"$work/$unpack"/configure --target=$A-unknown-linux-musl --enable-languages=c --with-newlib \
--disable-multilib --disable-libssp --disable-libquadmath \
--disable-threads --disable-decimal-float --disable-shared \
--disable-libmudflap --disable-libgomp --prefix="$out"
}
build() {
make all-gcc
}
install() {
make install-gcc
cd "$work/$unpack"
rm -rf "$work/gcc-build"
cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
`dirname $($A-unknown-linux-musl-gcc -print-libgcc-file-name)`/include/limits.h
}