--- nspr-4.7.1.ebuild.orig 2008-06-13 00:26:42.000000000 +0200 +++ nspr-4.7.1.ebuild 2008-06-21 15:12:07.323876200 +0200 @@ -45,10 +45,18 @@ myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)/nspr \ --enable-system-sqlite" + # fugly hack to work around bug 222625 + if use sparc-solaris; then + mkdir "${T}/sunld" + ln -s /usr/ccs/bin/ld "${T}/sunld/ld" + export EXTRA_CC_CALL="-B${TMP}/sunld -L/lib " + fi + ECONF_SOURCE="../mozilla/nsprpub" CC=$(tc-getCC) CXX=$(tc-getCPP) econf \ $(use_enable debug) \ ${myconf} || die "econf failed" - make CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die + use sparc-solaris && sed -i s/"GCC_USE_GNU_LD\t= 1"/"GCC_USE_GNU_LD\t="/ ${S}/build/config/autoconf.mk + make CC="$(tc-getCC) ${EXTRA_CC_CALL}" CXX="$(tc-getCXX)" || die } src_install () {