path: root/tools
diff options
authorRafaël Carré <>2008-10-30 20:54:46 +0000
committerRafaël Carré <>2008-10-30 20:54:46 +0000
commitd19534977902945738523872a78adc26b3147088 (patch)
tree3d6094865dc8744d5d832759799f926593ed2a67 /tools
parentf4a0f457be567092da038853b9ff295742678175 (diff)
Use CFLAGS=-U_FORTIFY_SOURCE for binutils and gcc configuration
Ubuntu introduced (in 8.10) strict buidtime and runtime checks with the define _FORTIFY_SOURCE Undefine it to fix: - building of gcc - runtime of as (Tested for arm-elf target) The previous fix for gcc would have no effect because gcc's configure doesn't substitute CPPFLAGS variable in Makefiles git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/ b/tools/
index 0d07b32821..800d294fd3 100755
--- a/tools/
+++ b/tools/
@@ -277,7 +277,9 @@ mkdir build-binu
echo "ROCKBOXDEV: cd build-binu"
cd build-binu
echo "ROCKBOXDEV: binutils/configure"
-../binutils-$binutils/configure --target=$target --prefix=$prefix/$target $binutilsconf
+# we undefine _FORTIFY_SOURCE to make the binutils built run fine on recent
+# Ubuntu installations
+CFLAGS=-U_FORTIFY_SOURCE ../binutils-$binutils/configure --target=$target --prefix=$prefix/$target $binutilsconf
echo "ROCKBOXDEV: binutils/make"
echo "ROCKBOXDEV: binutils/make install to $prefix/$target"
@@ -293,7 +295,7 @@ cd build-gcc
echo "ROCKBOXDEV: gcc/configure"
# we undefine _FORTIFY_SOURCE to make the gcc build go through fine on
# recent Ubuntu installations
-CPPFLAGS=-U_FORTIFY_SOURCE ../gcc-$gccver/configure --target=$target --prefix=$prefix/$target --enable-languages=c $gccconfigure
+CFLAGS=-U_FORTIFY_SOURCE ../gcc-$gccver/configure --target=$target --prefix=$prefix/$target --enable-languages=c $gccconfigure
echo "ROCKBOXDEV: gcc/make"
echo "ROCKBOXDEV: gcc/make install to $prefix/$target"