Sat Jul 17 18:39:59 UTC 2010  Gabor Pali <pgj@FreeBSD.org>
  * 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. 
diff -rN -u old-build/rts/BeginPrivate.h new-build/rts/BeginPrivate.h
--- old-build/rts/BeginPrivate.h	2010-07-17 19:02:58.091344230 +0000
+++ new-build/rts/BeginPrivate.h	2010-07-17 19:02:58.754094663 +0000
@@ -1,3 +1,3 @@
-#if __GNUC__ >= 4
+#if __GNUC__ >= 4 && !defined(freebsd_HOST_OS)
 #pragma GCC visibility push(hidden)
 #endif
diff -rN -u old-build/rts/EndPrivate.h new-build/rts/EndPrivate.h
--- old-build/rts/EndPrivate.h	2010-07-17 19:02:58.096263849 +0000
+++ new-build/rts/EndPrivate.h	2010-07-17 19:02:58.757086105 +0000
@@ -1,3 +1,3 @@
-#if __GNUC__ >= 4
+#if __GNUC__ >= 4 && !defined(freebsd_HOST_OS)
 #pragma GCC visibility pop
 #endif
