]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
fix tcmalloc handling in spec file
authorDan Horák <dan@danny.cz>
Fri, 6 May 2016 11:29:03 +0000 (13:29 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 6 May 2016 11:45:30 +0000 (13:45 +0200)
- there is no gperftools/tcmalloc on s390(x) yet
- explicitly disable tcmalloc when built without

Signed-off-by: Dan Horák <dan@danny.cz>
ceph.spec.in

index 3d2f70d9067d400a7a493ddbe0a2f9d5e109672e..214fbc6d4407775160de4f90bdac2f2f158db25b 100644 (file)
 %bcond_without cephfs_java
 %bcond_with tests
 %bcond_with xio
+%ifnarch s390 s390x
 %bcond_without tcmalloc
+%else
+# no gperftools/tcmalloc on s390(x)
+%bcond_with tcmalloc
+%endif
 %bcond_without libs_compat
 %bcond_with lowmem_builder
 %if 0%{?fedora} || 0%{?rhel}
@@ -138,7 +143,9 @@ BuildRequires:      btrfs-progs
 BuildRequires: nss-devel
 BuildRequires: keyutils-libs-devel
 BuildRequires: libatomic_ops-devel
+%if 0%{with tcmalloc}
 BuildRequires: gperftools-devel
+%endif
 BuildRequires:  openldap-devel
 BuildRequires:  openssl-devel
 BuildRequires:  redhat-lsb-core
@@ -661,7 +668,9 @@ export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'`
 %endif
                $CEPH_EXTRA_CONFIGURE_ARGS \
                %{?_with_ocf} \
-               %{?_with_tcmalloc} \
+%if %{without tcmalloc}
+               --without-tcmalloc \
+%endif
                CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
 
 %if %{with lowmem_builder}