|
43 | 43 | %{?_with_cluster:%define CLUSTER_BUILD 1}
|
44 | 44 | %{!?_with_cluster:%define CLUSTER_BUILD 0}
|
45 | 45 |
|
| 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 | + |
46 | 52 | %if %{STATIC_BUILD}
|
47 | 53 | %define release 0
|
48 | 54 | %else
|
@@ -448,7 +454,7 @@ $MBD/libtool --mode=execute install -m 755 \
|
448 | 454 | $RPM_BUILD_DIR/mysql-%{mysql_version}/mysql-debug-%{mysql_version}/sql/mysqld \
|
449 | 455 | $RBR%{_sbindir}/mysqld-debug
|
450 | 456 |
|
451 |
| -%if %{?malloc_lib_target:1}%{!?malloc_lib_target:0} |
| 457 | +%if %{WITH_TCMALLOC} |
452 | 458 | # Even though this is a shared library, put it under /usr/lib/mysql, so it
|
453 | 459 | # doesn't conflict with possible shared lib by the same name in /usr/lib. See
|
454 | 460 | # `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used.
|
|
714 | 720 | %attr(755, root, root) %{_libdir}/mysql/plugin/ha_innodb_plugin.so*
|
715 | 721 | %endif
|
716 | 722 |
|
717 |
| -%if %{?malloc_lib_target:1}%{!?malloc_lib_target:0} |
| 723 | +%if %{WITH_TCMALLOC} |
718 | 724 | %attr(755, root, root) %{_libdir}/mysql/%{malloc_lib_target}
|
719 | 725 | %endif
|
720 | 726 |
|
|
878 | 884 | # itself - note that they must be ordered by date (important when
|
879 | 885 | # merging BK trees)
|
880 | 886 | %changelog
|
| 887 | +* Mon Nov 16 2009 Joerg Bruehe <[email protected]> |
| 888 | + |
| 889 | +- Fix some problems with the directives around "tcmalloc" (experimental). |
| 890 | + |
881 | 891 | * Fri Oct 02 2009 Alexander Nozdrin <[email protected]>
|
882 | 892 |
|
883 | 893 | - "mysqlmanager" got removed from version 5.4, all references deleted.
|
|
0 commit comments