~percona-dev/percona-server/fb_changes_auto_lru_dump

Viewing all changes in revision 184.

  • Committer: Alexey Kopytov
  • Date: 2011-01-04 11:30:51 UTC
  • Revision ID: akopytov@gmail.com-20110104113051-jocbhhp9ucill3rs
Fixed linker errors about undefined clock_gettime() in client programs
when building without SSL support (i.e. without the '--with-ssl' option
to configure).

The problem was that in client/Makefile.am "LIBS" is overwritten by
"CLIENT_LIBS". So adding "-lrt" to LIBS alone is not enough, it has to
be added to CLIENT_LIBS as well. --with-ssl pulls the "-lrt" flag to
CLIENT_LIBS, that's why the problem could only be observed in very
specific build configurations (e.g. all BUILD/* scripts did not have
it). Actually, the problem exists in the MySQL server as well. It is
just hidden because MySQL does not check for librt at configure stage,
so it is always built without clock_gettime() support by default.

Fixed by adding "-lrt" to CLIENT_LIBS as well. AC_SEARCH_LIBS() has to
be used instead of AC_CHECK_LIB() now, because apart from adding a
library flag to LIBS we now have to perform an additional action.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: