native gcc: draft libmpfr (not working)
This commit is contained in:
parent
e0db397862
commit
88889951db
|
@ -1,2 +1,3 @@
|
|||
!src/fetch.json
|
||||
src/
|
||||
out/
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
;;
|
|
@ -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": [
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue