From ab64b25c5a448e2a2e9c19ce63584389bfd35ae5 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sun, 2 Feb 2003 21:23:36 +0000 Subject: [PATCH] Make the target option in RPM work conditionaly, as it has different syntax depending on version/os variant... yuk. [SVN r17166] --- src/engine/build.jam | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/build.jam b/src/engine/build.jam index a17bc3b5c..63d04c624 100644 --- a/src/engine/build.jam +++ b/src/engine/build.jam @@ -474,13 +474,15 @@ rule .rpm ( name : source ) DEPENDS $(name).src.rpm : $(name).$(rpm-arch).rpm ; docs on $(target) = $(dist.docs:J=" ") ; arch on $(target) = $(rpm-arch) ; + if $(rpm-arch) = ppc { target-opt on $(target) = --target= ; } + else { target-opt on $(target) = "--target " ; } .rpm-build $(target) : $(source) ; .clean $(name).$(rpm-arch).rpm $(name).src.rpm ; } actions .rpm-build { export BOOST_JAM_DOCS="$(docs)" export BOOST_JAM_TOOLSET="$(toolset)" - rpm -ta --target=$(arch) $(>) | tee rpm.out + rpm -ta $(target-opt)$(arch) $(>) | tee rpm.out cp `grep -e '^Wrote:' rpm.out | sed 's/^Wrote: //'` . rm -f rpm.out }