--- snes9x-1.43-r1.ebuild.orig 2005-08-28 23:35:39.000000000 +0200 +++ snes9x-1.43-r1.ebuild 2005-11-05 11:50:00.000000000 +0100 @@ -47,7 +47,7 @@ if use amd64 && [[ -z ${NATIVE_AMD64_BUILD_PLZ} ]] ; then export ABI=x86 append-flags -m32 - append-ldflags -m32 + append-ldflags -m32 -L/emul/linux/x86/lib32 -L/emul/linux/x86/usr/lib32 fi local vidconf= @@ -69,6 +69,10 @@ target=osnes9x;; fallback|X) vidconf="--with-x --without-glide --without-opengl" + if use amd64 && [[ -z ${NATIVE_AMD64_BUILD_PLZ} ]] ; then + # without this /usr/lib64 gets added + use amd64 && vidconf="$vidconf --x-libraries=/emul/linux/x86/usr/lib32" + fi target=snes9x;; esac # this stuff is ugly but hey the build process sucks ;)