gcc native: fix libgmp build; fix libmpfr build
This commit is contained in:
parent
169b4f7374
commit
1a903c6e2f
@ -32,23 +32,24 @@ echo -n Building libgmp...
|
|||||||
(
|
(
|
||||||
cd libgmp &&
|
cd libgmp &&
|
||||||
patch -p0 < $WORKING_DIR/patch/libgmp.patch &&
|
patch -p0 < $WORKING_DIR/patch/libgmp.patch &&
|
||||||
./configure --host=x86_64-jehanne --prefix=/pkgs/libgmp/6.1.2/ &&
|
./configure --host=x86_64-jehanne --prefix=/posix/ --with-sysroot=$JEHANNE &&
|
||||||
make &&
|
make &&
|
||||||
make DESTDIR=$JEHANNE install
|
make DESTDIR=$JEHANNE/pkgs/libgmp/6.1.2/ install
|
||||||
) >> $WORKING_DIR/gcc.build.log
|
) >> $WORKING_DIR/gcc.build.log
|
||||||
failOnError $? "Building libgmp"
|
failOnError $? "Building libgmp"
|
||||||
echo done.
|
echo done.
|
||||||
|
|
||||||
# Copy to /posix (to emulate bind during cross compilation)
|
# Copy to /posix (to emulate bind during cross compilation)
|
||||||
cp $JEHANNE/pkgs/libgmp/6.1.2/* $JEHANNE/posix
|
cp -fr $JEHANNE/pkgs/libgmp/6.1.2/posix/* $JEHANNE/posix
|
||||||
|
|
||||||
echo -n Building libmpfr...
|
echo -n Building libmpfr...
|
||||||
(
|
(
|
||||||
cd libmpfr
|
cd libmpfr &&
|
||||||
patch -p0 < $WORKING_DIR/patch/libmpfr.patch
|
patch -p0 < $WORKING_DIR/patch/libmpfr.patch &&
|
||||||
./configure --host=x86_64-jehanne --prefix=/pkgs/libmpfr/4.0.1/
|
./configure --host=x86_64-jehanne --prefix=/posix/ --with-sysroot=$JEHANNE --with-gmp=$JEHANNE/pkgs/libgmp/6.1.2/posix/ &&
|
||||||
make
|
cp ../../../../patch/MakeNothing.in doc/Makefile &&
|
||||||
make DESTDIR=$JEHANNE install
|
make &&
|
||||||
|
make DESTDIR=$JEHANNE/pkgs/libmpfr/4.0.1/ install
|
||||||
) >> $WORKING_DIR/gcc.build.log
|
) >> $WORKING_DIR/gcc.build.log
|
||||||
failOnError $? "Building libmpfr"
|
failOnError $? "Building libmpfr"
|
||||||
echo done.
|
echo done.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user