Skip to content

Commit 3a01679

Browse files
author
MySQL Build Team
committed
Change the control structures which the RPM spec file uses to govern
the inclusion of a separate malloc library (used for Google's "tcmalloc") to follow the pattern used for other optional parts. This is still experimental, there are some "rpmbuild" issues around this.
1 parent 870b6dd commit 3a01679

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

support-files/mysql.spec.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
%{?_with_cluster:%define CLUSTER_BUILD 1}
4444
%{!?_with_cluster:%define CLUSTER_BUILD 0}
4545

46+
# ----------------------------------------------------------------------
47+
# support optional "tcmalloc" stuff (experimental)
48+
# ----------------------------------------------------------------------
49+
%{?malloc_lib_target:%define WITH_TCMALLOC 1}
50+
%{!?malloc_lib_target:%define WITH_TCMALLOC 0}
51+
4652
%if %{STATIC_BUILD}
4753
%define release 0
4854
%else
@@ -448,7 +454,7 @@ $MBD/libtool --mode=execute install -m 755 \
448454
$RPM_BUILD_DIR/mysql-%{mysql_version}/mysql-debug-%{mysql_version}/sql/mysqld \
449455
$RBR%{_sbindir}/mysqld-debug
450456

451-
%if %{?malloc_lib_target:1}%{!?malloc_lib_target:0}
457+
%if %{WITH_TCMALLOC}
452458
# Even though this is a shared library, put it under /usr/lib/mysql, so it
453459
# doesn't conflict with possible shared lib by the same name in /usr/lib. See
454460
# `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used.
@@ -714,7 +720,7 @@ fi
714720
%attr(755, root, root) %{_libdir}/mysql/plugin/ha_innodb_plugin.so*
715721
%endif
716722

717-
%if %{?malloc_lib_target:1}%{!?malloc_lib_target:0}
723+
%if %{WITH_TCMALLOC}
718724
%attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target}
719725
%endif
720726

@@ -878,6 +884,10 @@ fi
878884
# itself - note that they must be ordered by date (important when
879885
# merging BK trees)
880886
%changelog
887+
* Mon Nov 16 2009 Joerg Bruehe <[email protected]>
888+
889+
- Fix some problems with the directives around "tcmalloc" (experimental).
890+
881891
* Fri Oct 02 2009 Alexander Nozdrin <[email protected]>
882892

883893
- "mysqlmanager" got removed from version 5.4, all references deleted.

0 commit comments

Comments
 (0)