mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
Fix bug #52263 innodb does not compile on OpenSolaris with gcc4.3.2
Disable the GCC visibility attribute on all sun platforms. Approved by Marko on IRC.
This commit is contained in:
parent
9d2a49d16d
commit
34a05995df
1 changed files with 4 additions and 2 deletions
|
@ -254,8 +254,10 @@ by one. */
|
||||||
option off; also some ibuf tests are suppressed */
|
option off; also some ibuf tests are suppressed */
|
||||||
|
|
||||||
/* Linkage specifier for non-static InnoDB symbols (variables and functions)
|
/* Linkage specifier for non-static InnoDB symbols (variables and functions)
|
||||||
that are only referenced from within InnoDB, not from MySQL */
|
that are only referenced from within InnoDB, not from MySQL. We disable the
|
||||||
#if defined(__GNUC__) && (__GNUC__ >= 4) || defined(__INTEL_COMPILER)
|
GCC visibility directive on all Sun operating systems because there is no
|
||||||
|
easy way to get it to work. See http://bugs.mysql.com/bug.php?id=52263. */
|
||||||
|
#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(sun) || defined(__INTEL_COMPILER)
|
||||||
# define UNIV_INTERN __attribute__((visibility ("hidden")))
|
# define UNIV_INTERN __attribute__((visibility ("hidden")))
|
||||||
#else
|
#else
|
||||||
# define UNIV_INTERN
|
# define UNIV_INTERN
|
||||||
|
|
Loading…
Add table
Reference in a new issue