mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +00:00
7370b75945
this should fix issues with compressed ELF header sections.
39 lines
956 B
Diff
39 lines
956 B
Diff
diff --git a/config.sh b/config.sh
|
|
index ec3c1ce..844fb3d 100644
|
|
--- a/config.sh
|
|
+++ b/config.sh
|
|
@@ -1,13 +1,15 @@
|
|
# ARCH will be auto-detected as the host if not specified
|
|
#ARCH=i486
|
|
-#ARCH=x86_64
|
|
+ARCH=x86_64
|
|
#ARCH=powerpc
|
|
#ARCH=arm
|
|
#ARCH=microblaze
|
|
#ARCH=mips
|
|
#ARCH=mipsel
|
|
|
|
-CC_BASE_PREFIX=/opt/cross
|
|
+if [ -z "$CC_BASE_PREFIX" ]; then
|
|
+ CC_BASE_PREFIX=$HOME/heads/install
|
|
+fi
|
|
|
|
# If you use arm, you may need more fine-tuning:
|
|
# arm hardfloat v7
|
|
@@ -20,11 +22,14 @@ CC_BASE_PREFIX=/opt/cross
|
|
#GCC_BOOTSTRAP_CONFFLAGS="--with-arch=armv7-a --with-float=softfp"
|
|
#GCC_CONFFLAGS="--with-arch=armv7-a --with-float=softfp"
|
|
|
|
-MAKEFLAGS=-j8
|
|
+MAKEFLAGS=-j`nproc`
|
|
|
|
# Enable this to build the bootstrap gcc (thrown away) without optimization, to reduce build time
|
|
GCC_STAGE1_NOOPT=1
|
|
|
|
+# Build GMP, MPFR and MPC
|
|
+GCC_BUILTIN_PREREQS=yes
|
|
+
|
|
# uncomment these to get smaller/stripped binaries
|
|
#export CFLAGS="-Os -g0 -s"
|
|
#export CXXFLAGS="-Os -g0"
|