gcc native: build libmpc
This commit is contained in:
2
cross/pkgs/gcc/.gitignore
vendored
2
cross/pkgs/gcc/.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
!src/fetch.json
|
|
||||||
src/
|
src/
|
||||||
|
!src/fetch.json
|
||||||
out/
|
out/
|
||||||
|
@ -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/ &&
|
./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 &&
|
cp ../../../../patch/MakeNothing.in doc/Makefile &&
|
||||||
make &&
|
make &&
|
||||||
make DESTDIR=$JEHANNE/pkgs/libmpfr/4.0.1/ install
|
make DESTDIR=$JEHANNE/pkgs//4.0.1/ install
|
||||||
) >> $WORKING_DIR/gcc.build.log
|
) >> $WORKING_DIR/gcc.build.log
|
||||||
failOnError $? "Building libmpfr"
|
failOnError $? "Building libmpfr"
|
||||||
echo done.
|
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
|
||||||
|
11
cross/pkgs/gcc/patch/libmpc.patch
Normal file
11
cross/pkgs/gcc/patch/libmpc.patch
Normal 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.
|
||||||
|
;;
|
@ -9,7 +9,6 @@
|
|||||||
"Exclude": [
|
"Exclude": [
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
"libmpfr" : {
|
"libmpfr" : {
|
||||||
"Upstream":"https://www.mpfr.org/mpfr-current/mpfr-4.0.1.tar.bz2",
|
"Upstream":"https://www.mpfr.org/mpfr-current/mpfr-4.0.1.tar.bz2",
|
||||||
"Digest": {
|
"Digest": {
|
||||||
@ -19,6 +18,16 @@
|
|||||||
"RemovePrefix": true,
|
"RemovePrefix": true,
|
||||||
"Exclude": [
|
"Exclude": [
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"libmpc" : {
|
||||||
|
"Upstream":"https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz",
|
||||||
|
"Digest": {
|
||||||
|
"sha256":"6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e"
|
||||||
|
},
|
||||||
|
"Compress":"gzip",
|
||||||
|
"RemovePrefix": true,
|
||||||
|
"Exclude": [
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user