X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FBeginPrivate.h;h=6a7ca5fb8fa146e9823dde7265eed789335f1a84;hb=d108044bef62f6a0d579c92ced5e8188f72edc2d;hp=3ba4b8913df994bf73f3283631feb77f99810872;hpb=51b85031ce99f1e9d4c72249d6d85672188f0fbd;p=ghc-hetmet.git diff --git a/rts/BeginPrivate.h b/rts/BeginPrivate.h index 3ba4b89..6a7ca5f 100644 --- a/rts/BeginPrivate.h +++ b/rts/BeginPrivate.h @@ -1,3 +1,10 @@ -#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. */ +/* On Windows, with gcc 4.5.0-1, using visibility hidden gives: + error: visibility attribute not supported in this configuration; ignored + */ +#if __GNUC__ >= 4 && !defined(freebsd_HOST_OS) && !defined(mingw32_HOST_OS) #pragma GCC visibility push(hidden) #endif