diff options
author | Sage Weil <sage@newdream.net> | 2011-10-17 08:50:54 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-10-17 08:50:54 -0700 |
commit | 21d941e83b168fa297aed58e27b4c11193468293 (patch) | |
tree | 78a3a9a48f59f4d301e20ef7e12fbf6856e81161 /ceph.spec.in | |
parent | 195a484b47e4e51ab1d27c671ee29ca20b2b6a46 (diff) | |
download | ceph-21d941e83b168fa297aed58e27b4c11193468293.tar.gz |
ceph.spec: work around build.opensuse.org
The redhat-rpm-config isn't installed on build.opensuse.org, which means
the processor is set to i386 instead of something less ancient. This
breaks compilation on 32-bit x86.
Kludge around it here.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'ceph.spec.in')
-rw-r--r-- | ceph.spec.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ceph.spec.in b/ceph.spec.in index 26cc50fcb23..a5f21d08eca 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -129,6 +129,8 @@ MY_CONF_OPT="$MY_CONF_OPT --without-gtk2" --without-hadoop $MY_CONF_OPT \ %{?with_tcmalloc:--with-tcmalloc} %{!?with_tcmalloc:--without-tcmalloc} +export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'` + make -j$(getconf _NPROCESSORS_ONLN) CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %install |