Commit 28c2bbb0 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Disable symbol visibility pragmas for FreeBSD

Do not use GCC pragmas for controlling visibility, because it causes
"undefined reference" errors at link-time.  The true reasons are
unknown, however FreeBSD 8.x includes GCC 4.2.1 in the base system,
which might be buggy. 
parent fd9f6472
#if __GNUC__ >= 4 /* We don't use symbol visibility pragmas on FreeBSD, because it causes
"undefined reference" errors at link-time. The true reasons are
unknown, however FreeBSD 8.x includes GCC 4.2.1 in the base system,
which might be buggy. */
#if __GNUC__ >= 4 && !defined(freebsd_HOST_OS)
#pragma GCC visibility push(hidden) #pragma GCC visibility push(hidden)
#endif #endif
#if __GNUC__ >= 4 #if __GNUC__ >= 4 && !defined(freebsd_HOST_OS)
#pragma GCC visibility pop #pragma GCC visibility pop
#endif #endif
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