mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-22 13:47:44 +01:00
* updated build instructions for gcc4
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@36422 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ff7b7cd5e5
commit
113b93b3d8
@ -3,12 +3,18 @@ How to build gcc-4.3 natively on Haiku:
|
|||||||
checkout the buildtools from the haiku repository
|
checkout the buildtools from the haiku repository
|
||||||
cd into the buildtools folder (where this file lives)
|
cd into the buildtools folder (where this file lives)
|
||||||
|
|
||||||
|
declare the current gcc-version-date like this:
|
||||||
|
export GCCDATE=100421
|
||||||
|
(just use the current date instead of '100421')
|
||||||
|
|
||||||
compile binutils:
|
compile binutils:
|
||||||
|
|
||||||
mkdir binutils-obj
|
mkdir binutils-obj
|
||||||
cd binutils-obj
|
cd binutils-obj
|
||||||
CFLAGS="-O2" CXXFLAGS="-O2" ../binutils/configure --prefix=/boot/develop/tools/gnupro --disable-nls --enable-shared=yes
|
CFLAGS="-O2" CXXFLAGS="-O2" ../binutils/configure \
|
||||||
make
|
--prefix=/boot/develop/abi/x86/gcc4/tools/gcc-4.3.3-haiku-${GCCDATE} \
|
||||||
|
--disable-nls --enable-shared=yes
|
||||||
|
make -j2
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
compile gcc:
|
compile gcc:
|
||||||
@ -16,19 +22,16 @@ compile gcc:
|
|||||||
mkdir gcc-obj
|
mkdir gcc-obj
|
||||||
cd gcc-obj
|
cd gcc-obj
|
||||||
CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure \
|
CFLAGS="-O2" CXXFLAGS="-O2" ../gcc/configure \
|
||||||
--prefix=/boot/develop/tools/gnupro \
|
--prefix=/boot/develop/abi/x86/gcc4/tools/gcc-4.3.3-haiku-${GCCDATE} \
|
||||||
--enable-shared --enable-languages=c,c++ \
|
--enable-shared --enable-languages=c,c++ \
|
||||||
--disable-nls --without-libiconv-prefix --disable-libstdcxx-pch
|
--disable-nls --without-libiconv-prefix --disable-libstdcxx-pch
|
||||||
make bootstrap
|
make -j2 bootstrap
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
Ok, now everything is compiled and ready, waiting to be installed:
|
Ok, now everything is compiled and ready, waiting to be installed:
|
||||||
|
|
||||||
mv /boot/develop/abi/current/tools/gcc-4.3.3-haiku-xxxxxx \
|
mkdir /boot/develop/abi/x86/gcc4/tools/gcc-4.3.3-haiku-${GCCDATE}
|
||||||
/boot/develop/abi/current/tools/gcc-4.3.3-haiku-xxxxxx_orig
|
ln -sfn gcc-4.3.3-haiku-${GCCDATE} /boot/develop/abi/x86/gcc4/tools/current
|
||||||
mkdir /boot/develop/abi/current/tools/gcc-4.3.3-haiku-090629
|
|
||||||
ln -sfn /boot/develop/abi/current/tools/gcc-4.3.3-haiku-090629 \
|
|
||||||
/boot/develop/abi/current/tools/current
|
|
||||||
cd binutils-obj
|
cd binutils-obj
|
||||||
make install
|
make install
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
x
Reference in New Issue
Block a user