Compiling openoffice-2.0.1 with gcc-4.1 compiler on the nptlonly glibc results in compile error. Patches coming.
Created attachment 79125 [details, diff] store-drop-gcc-libs-on-linking.diff Patch from ooo-build.
Created attachment 79126 [details, diff] gcc-4.1.x-nptlonly-tls-fix.diff Patch against to get it automatically patch the sources.
Created attachment 79127 [details, diff] openoffice-2.0.1.ebuild.diff Patch against ebuild. At the moment it's untested, but openoffice is currently emerging and has already passed the point of breakage. To avoid regressions, we should check whether glibc was built with nptlonly USE flag, but hopefully it works :)
My initial hack just drops the gcc check in store/util/makefile.mk. (.IF "$(COMID)"=="gcc3") The real fix is to change $(COMID) to gcc4 if gcc4.x is used. If I am not mistaken. I will have a look into this and supply a patch then.
Touching $(COMID) ends in a deep impact of OOo build procedure. No way I touch that. :) new version on ooo-build-HEAD: http://go-oo.org/patches/src680/store-drop-gcc-libs-on-linking.diff ChangeLog: * patches/src680/store-drop-gcc-libs-on-linking.diff: replace hack by additional gcc version check, add '-lsupc++ -lgcc_s' only for < gcc 4.1
This is still needed for app-office/openoffice-2.0.2_rc1
...and still needed with app-office/openoffice-2.0.2_rc3.
I've just added a new revision to portage which utilizes Hannos Hack for fixing this. Could you please try out and see how it goes?
Works for me :) Marking fixed..