diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-07-06 08:38:05 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-07-06 08:38:05 +0000 |
commit | f74912ae5381f27c76fa9039441ac4f735e73a31 (patch) | |
tree | a4afa3c628c5511c951eb99842b19da3d3611679 /scripts/binutils/binutils.add | |
parent | Enable CS1* and CS2* now that Arcturus bootstrap PROMs no longer take care of... (diff) | |
download | rtems-f74912ae5381f27c76fa9039441ac4f735e73a31.tar.bz2 |
2005-07-06 Ralf Corsepius <ralf.corsepius@rtems.org>
* binutils/binutils.add: Take out -D_FORTIFY_SOURCE from CFLAGS
to prevent fortify from rendering ar unusable.
Diffstat (limited to '')
-rw-r--r-- | scripts/binutils/binutils.add | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/binutils/binutils.add b/scripts/binutils/binutils.add index 3fbfd99bb3..21674dcabe 100644 --- a/scripts/binutils/binutils.add +++ b/scripts/binutils/binutils.add @@ -47,7 +47,13 @@ cd .. %build cd build - CFLAGS="$RPM_OPT_FLAGS" \ +%if "%{binutils_version}" <= "2.16.1" +# ar leaks memory - Disable fortify to prevent it from killing ar + OPT_FLAGS=$(echo "$RPM_OPT_FLAGS" | sed -e 's/\-Wp,\-D_FORTIFY_SOURCE=[^ ]*//') +%else + OPT_FLAGS="$RPM_OPT_FLAGS" +%endif + CFLAGS="$OPT_FLAGS" \ ../binutils-%{binutils_version}/configure \ --build=%_build --host=%_host \ --target=%{binutils_target} \ |