native gcc: draft libmpfr (not working)

This commit is contained in:
Giacomo Tesio 2018-11-26 01:52:25 +01:00
parent e0db397862
commit 88889951db
4 changed files with 42 additions and 4 deletions

View File

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

View File

@ -30,11 +30,25 @@ failOnError $? "fetching sources"
echo -n Building libgmp...
(
cd libgmp
patch -p0 < $WORKING_DIR/patch/libgmp.patch
./configure --host=x86_64-jehanne --prefix=/pkgs/libgmp/6.1.2/
make
cd libgmp &&
patch -p0 < $WORKING_DIR/patch/libgmp.patch &&
./configure --host=x86_64-jehanne --prefix=/pkgs/libgmp/6.1.2/ &&
make &&
make DESTDIR=$JEHANNE install
) >> $WORKING_DIR/gcc.build.log
failOnError $? "Building libgmp"
echo done.
# Copy to /posix (to emulate bind during cross compilation)
cp $JEHANNE/pkgs/libgmp/6.1.2/* $JEHANNE/posix
echo -n Building libmpfr...
(
cd libmpfr
patch -p0 < $WORKING_DIR/patch/libmpfr.patch
./configure --host=x86_64-jehanne --prefix=/pkgs/libmpfr/4.0.1/
make
make DESTDIR=$JEHANNE install
) >> $WORKING_DIR/gcc.build.log
failOnError $? "Building libmpfr"
echo done.

View File

@ -0,0 +1,11 @@
diff -Naru ../orig/config.sub ./config.sub
--- ../orig/config.sub 2018-11-26 14:23:59.224388851 +0100
+++ ./config.sub 2018-11-26 14:24:55.300412850 +0100
@@ -1416,6 +1416,7 @@
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
+ | -jehanne* \
| -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
# Remember, each alternative MUST END IN *, to match a version number.
;;

View File

@ -8,5 +8,17 @@
"RemovePrefix": true,
"Exclude": [
]
},
"libmpfr" : {
"Upstream":"https://www.mpfr.org/mpfr-current/mpfr-4.0.1.tar.bz2",
"Digest": {
"sha256":"a4d97610ba8579d380b384b225187c250ef88cfe1d5e7226b89519374209b86b"
},
"Compress":"bzip2",
"RemovePrefix": true,
"Exclude": [
]
}
}