summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-03-26 06:00:04 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-03-26 06:00:04 +0000
commitdd56645977a102e107a08d3852e1fdda869bba17 (patch)
treef751079fe4b99082a07e947256fb371be1e33188 /contrib
parent2008-03-25 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-dd56645977a102e107a08d3852e1fdda869bba17.tar.bz2
Add CFLAGS_FOR_BUILD.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/crossrpms/gdb/build.add3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/crossrpms/gdb/build.add b/contrib/crossrpms/gdb/build.add
index c2309262bf..cb59d3fe4f 100644
--- a/contrib/crossrpms/gdb/build.add
+++ b/contrib/crossrpms/gdb/build.add
@@ -4,6 +4,9 @@
%endif
mkdir -p build
cd build
+%if "%{_build}" != "%{_host}"
+ CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
CFLAGS="$RPM_OPT_FLAGS" \
../gdb-%{gdb_version}/configure \
--build=%_build --host=%_host \