Created attachment 321352 [details, diff] Patch for pixman-0.27.2.ebuild x11-libs/pixman since 0.26 contains handwritten assembler optimization for Loongson MIPS processor. I request adding new use flag to control this feature because current behavior is compile-time autodetection which does not work when cross-compiling or when one wants to disable the optimization explicitly. Please note MMX or other SIMD code is driven in the same way. Attached patch implements it by adding `loongson' USE flag.
I guess I should do this, but I plan for the configure options to get more complicated, since Loongson 2e and 2f are mutually incompatible. > which does not work when cross-compiling I've cross compiled this before. Why doesn't it work for you?
I did not cross compile the library. But I've cross compiled a lot of other things for an embedded MIPS and I know the problem is the detection in configure cannot handle it. It usually parses `uname' or compiles and run short code to check run-time capabilities. But this of course provides wrong results because build and target machines can be two completely different platforms.
(In reply to comment #2) > I did not cross compile the library. But I've cross compiled a lot of other > things for an embedded MIPS and I know the problem is the detection in > configure cannot handle it. It usually parses `uname' or compiles and run > short code to check run-time capabilities. But this of course provides wrong > results because build and target machines can be two completely different > platforms. It doesn't. Cross compilation works by checking whether gcc can compile code for Loongson, not by running it. Check configure.ac.
I've just did it and you are right. This way it works. But obviously only with GCC.
Added a loongson2f flag to 0.29.2.