pkgsrc - Hack for dynamic loading of certain libgcc.a symbols
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 4 Oct 2010 18:48:35 +0000 (11:48 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 4 Oct 2010 18:48:35 +0000 (11:48 -0700)
commit0cfd7e44b3676f6a43164acab0aaea46365b5c53
treec0875617fd0576c2dc2658957d59dfcc8f46525e
parent6c4de62c59ba95420ee712e340c8dd8d0ab4b1f9
pkgsrc - Hack for dynamic loading of certain libgcc.a symbols

* For some reason firefox cannot find __popcountsi2 in a late reference
  from libcairo.so.2, which occurs when certain page content is accessed.
  This reference does not occur immediately.

* Add a weak reference from libc to force the symbol to be available,
  which appears to fix the problem.

* This is a horrible hack and currently we do not know why the dynamic
  link code cannot find the symbol.
lib/libc/gen/Makefile.inc
lib/libc/gen/_gcc_hack.c [new file with mode: 0644]