diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-03-26 06:00:04 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-03-26 06:00:04 +0000 |
commit | dd56645977a102e107a08d3852e1fdda869bba17 (patch) | |
tree | f751079fe4b99082a07e947256fb371be1e33188 /contrib/crossrpms/gdb | |
parent | 2008-03-25 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-dd56645977a102e107a08d3852e1fdda869bba17.tar.bz2 |
Add CFLAGS_FOR_BUILD.
Diffstat (limited to 'contrib/crossrpms/gdb')
-rw-r--r-- | contrib/crossrpms/gdb/build.add | 3 |
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 \ |