Commit b5913447 authored by Sunny Bains's avatar Sunny Bains

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.
parent bf061a81
...@@ -254,8 +254,10 @@ by one. */ ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment