From 5ee16abd07f32bde1916aa3545c358bd8eed1807 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 18 Mar 2008 06:12:56 +0000 Subject: [PATCH] Add %{_bindir} to PATH to cater CdnX-builds. Set CFLAGS_FOR_BUILD. --- contrib/crossrpms/binutils/build.add | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/crossrpms/binutils/build.add b/contrib/crossrpms/binutils/build.add index d9993c6c9f..29fe856f96 100644 --- a/contrib/crossrpms/binutils/build.add +++ b/contrib/crossrpms/binutils/build.add @@ -1,10 +1,16 @@ %build +%if "%{_prefix}" != "/usr" + export PATH="%{_bindir}:${PATH}" +%endif %if "@tool_target@" == "i686-pc-cygwin" # The cygwin sources are leaking memory RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')" %endif mkdir -p build cd build +%if "%{_build}" != "%{_host}" + CFLAGS_FOR_BUILD="-g -O2 -Wall" \ +%endif CFLAGS="$RPM_OPT_FLAGS" \ ../binutils-%{binutils_pkgvers}/configure \ --build=%_build --host=%_host \