Static ALSA is needed by QEMU when compiling qemu-fast. ALSA people say that static version can not be build together with shared because of bug in libtool (see alsa-lib docs). So we need a separate ./configure --enable-static=yes --enable-shared=no && make && make install pass I guess... Reproducible: Always Steps to Reproduce:
maybe this should be done with USE="static"
1.0.4 has this option now.
But... how can I have emerged static AND dynamic version at the same time? I think that this is not the "right" fix, because it installs static OR dynamic version. I need static for one package (qemu-fast for example) and all other packages use dynamic version . I do not know what "static" keyword means: build only static version OR build static version too. If the first then static version should probably have different slot or something to not replace dynamic version. And symlink to dynamic lib should not be created if building static. If the second then ebuild should be fixed... And as it is said in comment in ebuild we can not build static AND dynamic version in the same time because of bug in libtool, but we can build dynamic and THEN unpack the source second time and build static and install both (I hacked the ebuild and it worked good, but I do not provide it because I do not know how to write "right" ebuild in this case so my was an ugly hack).
ok, i'll look into doing both...
now in portage.
so on, we need to put "static" in USE, emerge alsa-lib, and then remove "static" from USE ... maybe good idea to remove USE at all? just assume that it is there ...
uhm... no. that's not how use flags work. If you want just alsa to have a static lib, so USE=static emerge -v alsa or use the per-package use flag support that is being added to portage (maybe already is in there)