On Wed, 19 Mar 2003, Guillaume Rousse wrote: > > No package will be built with MMX optimizations by default as there are > > Pentium out there without those extensions. However, if your application > > dynamically links against some optimized DSOs that would be fine to put > > those libraries in */lib/mmx/* or */lib/sse{,2}/*. But you will be stuck > > if they decided to dlopen() their plugins/libraries. > An other option would be to have different packages for optimized and non > optimized libs/binaries, and use alternatives to use them transparently.
The process described above doesn't need any alternatives. The glibc loader knows which library to load. e.g. say you have libfoo.so.1 in /usr/lib and one in /usr/lib/sse/. If your application has libfoo.so.1 as dependency, then glibc will load the */lib/sse/* one if your CPU supports SSE instructions.