gcc native: build libmpc

This commit is contained in:
Giacomo Tesio 2018-11-27 01:46:03 +01:00
parent 1a903c6e2f
commit 229fbc9633
4 changed files with 43 additions and 3 deletions

View File

@ -1,3 +1,3 @@
!src/fetch.json
src/
!src/fetch.json
out/

View File

@ -49,7 +49,27 @@ echo -n Building libmpfr...
./configure --host=x86_64-jehanne --prefix=/posix/ --with-sysroot=$JEHANNE --with-gmp=$JEHANNE/pkgs/libgmp/6.1.2/posix/ &&
cp ../../../../patch/MakeNothing.in doc/Makefile &&
make &&
make DESTDIR=$JEHANNE/pkgs/libmpfr/4.0.1/ install
make DESTDIR=$JEHANNE/pkgs//4.0.1/ install
) >> $WORKING_DIR/gcc.build.log
failOnError $? "Building libmpfr"
echo done.
# Copy to /posix (to emulate bind during cross compilation)
cp -fr $JEHANNE/pkgs/libmpfr/4.0.1/posix/* $JEHANNE/posix
echo -n Building libmpc...
(
cd libmpc &&
chmod u+w config.sub &&
patch -p0 < $WORKING_DIR/patch/libmpc.patch &&
chmod u-w config.sub &&
./configure --host=x86_64-jehanne --prefix=/posix/ --with-sysroot=$JEHANNE --with-gmp=$JEHANNE/pkgs/libgmp/6.1.2/posix/ --with-mpfr=$JEHANNE/pkgs/libmpfr/4.0.1/posix/ &&
cp ../../../../patch/MakeNothing.in doc/Makefile &&
make &&
make DESTDIR=$JEHANNE/pkgs/libmpc/1.1.0/ install
) >> $WORKING_DIR/gcc.build.log
failOnError $? "Building libmpc"
echo done.
# Copy to /posix (to emulate bind during cross compilation)
cp -fr $JEHANNE/pkgs/libmpc/4.0.1/posix/* $JEHANNE/posix

View File

@ -0,0 +1,11 @@
diff -Naru ../orig/config.sub ./config.sub
--- ../orig/config.sub 2018-11-27 00:30:59.807843647 +0100
+++ ./config.sub 2018-11-27 00:32:49.224841688 +0100
@@ -1393,6 +1393,7 @@
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -jehanne* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
# Remember, each alternative MUST END IN *, to match a version number.
;;

View File

@ -9,7 +9,6 @@
"Exclude": [
]
},
"libmpfr" : {
"Upstream":"https://www.mpfr.org/mpfr-current/mpfr-4.0.1.tar.bz2",
"Digest": {
@ -19,6 +18,16 @@
"RemovePrefix": true,
"Exclude": [
]
},
"libmpc" : {
"Upstream":"https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz",
"Digest": {
"sha256":"6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e"
},
"Compress":"gzip",
"RemovePrefix": true,
"Exclude": [
]
}
}