forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2005-07-05 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* binutils/mkspec.in, gccnewlib/mkspec.in, gdb/mkspec.in:
|
||||
|
||||
@@ -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} \
|
||||
|
||||
Reference in New Issue
Block a user