--- ocaml-3.09.3-r1.ebuild 2007-09-23 10:03:16.791908924 +0100 +++ ocaml-3.09.3-r2.ebuild 2007-09-23 10:08:28.244394894 +0100 @@ -82,6 +82,10 @@ # It doesn't compile on alpha without this LDFLAGS use alpha && append-ldflags "-Wl,--no-relax" + # Packages that use Ocaml break if -Wl,--as-needed is set + filter-ldflags "--as-needed" + filter-ldflags "-Wl,--as-needed" + use tk || myconf="${myconf} -no-tk" use ncurses || myconf="${myconf} -no-curses" use X || myconf="${myconf} -no-graph"