From dd56645977a102e107a08d3852e1fdda869bba17 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 26 Mar 2008 06:00:04 +0000 Subject: [PATCH] Add CFLAGS_FOR_BUILD. --- contrib/crossrpms/gdb/build.add | 3 +++ 1 file changed, 3 insertions(+) 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 \