Created
December 14, 2014 14:48
-
-
Save warped-rudi/2a2cc4f70da19924ceaa to your computer and use it in GitHub Desktop.
This file contains 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
diff --git a/packages/host-packages/host-gcc/build b/packages/host-packages/host-gcc/build | |
index 45f1b71..3be6646 100755 | |
--- a/packages/host-packages/host-gcc/build | |
+++ b/packages/host-packages/host-gcc/build | |
@@ -52,7 +52,8 @@ cd $1 | |
--with-mpc=$dir_internal_mpc \ | |
--disable-multilib \ | |
--enable-shared \ | |
- --disable-bootstrap | |
+ --disable-bootstrap \ | |
+ --enable-languages=c,c++ | |
make | |
diff --git a/config/functions b/config/functions | |
index 002eddd..bddcac6 100644 | |
--- a/config/functions | |
+++ b/config/functions | |
@@ -49,6 +49,7 @@ setup_toolchain() { | |
export QMAKESPEC=$QT_MKSPECS | |
export QT_PATH_INCLUDES=$LIB_PREFIX/include/qt4 | |
export QT_PATH_LIBS=$LIB_PREFIX/lib | |
+ export LD_LIBRARY_PATH=$ROOT/$TOOLCHAIN/local/lib64:$LD_LIBRARY_PATH | |
elif [ "$1" = host ]; then | |
export CC=$HOST_CC | |
export CXX=$HOST_CXX | |
@@ -68,6 +69,7 @@ setup_toolchain() { | |
export PKG_CONFIG_PATH="$ROOT/$TOOLCHAIN/lib/pkgconfig:$ROOT/$TOOLCHAIN/share/pkgconfig" | |
export PKG_PROG_PKG_CONFIG=$PKG_CONFIG | |
export FREETYPE_CONFIG=$ROOT/$TOOLCHAIN/bin/freetype-config | |
+ export LD_LIBRARY_PATH=$ROOT/$TOOLCHAIN/local/lib64:$LD_LIBRARY_PATH | |
fi | |
} | |
diff --git a/config/path b/config/path | |
index 78f53d5..9043ddc 100644 | |
--- a/config/path | |
+++ b/config/path | |
@@ -52,6 +52,11 @@ ROOT=`pwd` | |
# Toolchain Settings # | |
###################### | |
+NUM_PROCESSORS=`grep -c processor /proc/cpuinfo` | |
+[ -z "$CONCURRENCY_MAKE_LEVEL" ] && CONCURRENCY_MAKE_LEVEL=0 | |
+[ $CONCURRENCY_MAKE_LEVEL -lt 1 -o $CONCURRENCY_MAKE_LEVEL -gt $NUM_PROCESSORS ] && \ | |
+ CONCURRENCY_MAKE_LEVEL=$NUM_PROCESSORS | |
+ | |
. config/toolchain | |
TOOLCHAIN_LANGUAGES=c | |
diff --git a/packages/system/eglibc/build b/packages/system/eglibc/build | |
index 2c93f48..93497dd 100755 | |
--- a/packages/system/eglibc/build | |
+++ b/packages/system/eglibc/build | |
@@ -2,6 +2,8 @@ | |
. config/options | |
+unset LD_LIBRARY_PATH | |
+ | |
export BUILD_CC=$HOST_CC | |
export OBJDUMP_FOR_HOST=objdump | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment