mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 19:16:32 +01:00
parent
a185b83f80
commit
f59909142d
6 changed files with 74 additions and 55 deletions
|
|
@ -14,8 +14,10 @@ src_prepare() {
|
|||
# Needed for musl
|
||||
sed -i 's/struct siginfo/siginfo_t/' gcc/config/i386/linux-unwind.h
|
||||
|
||||
rm configure
|
||||
autoconf-2.13
|
||||
# Regenerating top level Makefile requires GNU Autogen and hence Guile,
|
||||
# but it is not essential for building gcc.
|
||||
rm configure Makefile.in fixincludes/fixincl.x
|
||||
|
||||
for dir in intl libcpp; do
|
||||
cd $dir
|
||||
rm aclocal.m4
|
||||
|
|
@ -61,14 +63,20 @@ src_prepare() {
|
|||
src_configure() {
|
||||
mkdir build
|
||||
cd build
|
||||
CC=tcc CFLAGS="-D HAVE_ALLOCA_H" ../configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${PREFIX}"/lib/musl \
|
||||
--build=i386-unknown-linux-gnu \
|
||||
--host=i386-unknown-linux-gnu \
|
||||
--disable-shared \
|
||||
--disable-nls \
|
||||
--disable-libmudflap
|
||||
|
||||
for dir in libiberty libcpp gcc; do
|
||||
mkdir $dir
|
||||
cd $dir
|
||||
CC=tcc CFLAGS="-D HAVE_ALLOCA_H" ../../$dir/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${PREFIX}"/lib/musl \
|
||||
--build=i386-unknown-linux-gnu \
|
||||
--target=i386-unknown-linux-gnu \
|
||||
--host=i386-unknown-linux-gnu \
|
||||
--disable-shared \
|
||||
--program-transform-name=
|
||||
cd ..
|
||||
done
|
||||
cd ..
|
||||
|
||||
sed -i 's/C_alloca/alloca/g' libiberty/alloca.c
|
||||
|
|
@ -76,13 +84,13 @@ src_configure() {
|
|||
}
|
||||
|
||||
src_compile() {
|
||||
mkdir -p /usr/
|
||||
ln -sf "${PREFIX}"/include /usr/include
|
||||
ln -sf /usr/include/limits.h /usr/include/sys/limits.h
|
||||
|
||||
make -C build LIBGCC2_INCLUDES=-I"${PREFIX}/include/musl"
|
||||
ln -s . build/build-i386-unknown-linux-gnu
|
||||
for dir in libiberty libcpp gcc; do
|
||||
make -C build/$dir LIBGCC2_INCLUDES=-I"${PREFIX}/include/musl" STMP_FIXINC=
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make -C build install
|
||||
mkdir -p "${PREFIX}/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/install-tools/include"
|
||||
make -C build/gcc install STMP_FIXINC=
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue