summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2008-10-30 20:54:46 +0000
committerRafaël Carré <rafael.carre@gmail.com>2008-10-30 20:54:46 +0000
commitd19534977902945738523872a78adc26b3147088 (patch)
tree3d6094865dc8744d5d832759799f926593ed2a67
parentf4a0f457be567092da038853b9ff295742678175 (diff)
downloadrockbox-d19534977902945738523872a78adc26b3147088.tar.gz
rockbox-d19534977902945738523872a78adc26b3147088.zip
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://svn.rockbox.org/rockbox/trunk@18938 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/rockboxdev.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 0d07b32821..800d294fd3 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -277,7 +277,9 @@ mkdir build-binu
277echo "ROCKBOXDEV: cd build-binu" 277echo "ROCKBOXDEV: cd build-binu"
278cd build-binu 278cd build-binu
279echo "ROCKBOXDEV: binutils/configure" 279echo "ROCKBOXDEV: binutils/configure"
280../binutils-$binutils/configure --target=$target --prefix=$prefix/$target $binutilsconf 280# we undefine _FORTIFY_SOURCE to make the binutils built run fine on recent
281# Ubuntu installations
282CFLAGS=-U_FORTIFY_SOURCE ../binutils-$binutils/configure --target=$target --prefix=$prefix/$target $binutilsconf
281echo "ROCKBOXDEV: binutils/make" 283echo "ROCKBOXDEV: binutils/make"
282$make 284$make
283echo "ROCKBOXDEV: binutils/make install to $prefix/$target" 285echo "ROCKBOXDEV: binutils/make install to $prefix/$target"
@@ -293,7 +295,7 @@ cd build-gcc
293echo "ROCKBOXDEV: gcc/configure" 295echo "ROCKBOXDEV: gcc/configure"
294# we undefine _FORTIFY_SOURCE to make the gcc build go through fine on 296# we undefine _FORTIFY_SOURCE to make the gcc build go through fine on
295# recent Ubuntu installations 297# recent Ubuntu installations
296CPPFLAGS=-U_FORTIFY_SOURCE ../gcc-$gccver/configure --target=$target --prefix=$prefix/$target --enable-languages=c $gccconfigure 298CFLAGS=-U_FORTIFY_SOURCE ../gcc-$gccver/configure --target=$target --prefix=$prefix/$target --enable-languages=c $gccconfigure
297echo "ROCKBOXDEV: gcc/make" 299echo "ROCKBOXDEV: gcc/make"
298$make 300$make
299echo "ROCKBOXDEV: gcc/make install to $prefix/$target" 301echo "ROCKBOXDEV: gcc/make install to $prefix/$target"