diff options
Diffstat (limited to 'contrib')
-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 \ |