Created
May 27, 2016 17:59
-
-
Save pamaury/78cc1bed925e89b493939d27fbb39d9d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- myrockbox/tools/rockboxdev.sh 2016-05-25 00:18:27.221812317 +0200 | |
+++ rockboxdev.sh 2016-05-27 19:52:17.461994508 +0200 | |
@@ -211,7 +211,7 @@ | |
./configure --prefix=$prefix $configure_params | |
;; | |
*) | |
- CFLAGS=-U_FORTIFY_SOURCE ../$toolname-$version/configure --target=$target --prefix=$prefix --enable-languages=c --disable-libssp --disable-docs $configure_params | |
+ CFLAGS="-U_FORTIFY_SOURCE -fgnu89-inline" ../$toolname-$version/configure --target=$target --prefix=$prefix --enable-languages=c --disable-libssp --disable-docs $configure_params | |
;; | |
esac | |
@@ -273,6 +273,12 @@ | |
cat "$dlwhere/ct-ng-config" | sed -e "s,\(CT_PREFIX_DIR=\).*,\1$prefix," > $ctng_config | |
cd $builddir/build-$ctng_target | |
+ # disable graphite, ppl and cloog that seem impossible build | |
+ for f in CT_CC_GCC_USE_GRAPHITE CT_CC_GCC_HAS_GRAPHITE CT_CC_GCC_USE_PPL_CLOOG CT_PPL_NEEDED CT_CLOOG_NEEDED CT_PPL CT_CLOOG; do | |
+ cp $ctng_config "$ctng_config.2" | |
+ cat "$ctng_config.2" | sed -e "s/$f=y/$f=n/" > $ctng_config | |
+ done | |
+ | |
$ctng "build" | |
# install extras | |
@@ -366,12 +372,8 @@ | |
;; | |
[Ii]) | |
- build "binutils" "mipsel-elf" "2.17" "" "--disable-werror" | |
- patch="" | |
- if [ "$system" = "Interix" ]; then | |
- patch="gcc-4.1.2-interix.diff" | |
- fi | |
- build "gcc" "mipsel-elf" "4.1.2" "$patch" | |
+ build "binutils" "mipsel-elf" "2.22" "" "--disable-werror" | |
+ build "gcc" "mipsel-elf" "4.6.3" "" "MAKEINFO=missing" "gmp mpfr mpc" | |
;; | |
[Mm]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment