Hi everyone,

Since noone answered, I assume that MULTILIB_REUSE was indeed not the solution. 
Thus, I've implemented a solution using a new target macro MULTILIB_FALLBACK. 
It allows any target to return a new multilib suffix based on the current
one being used by the algorithm. This solution is much simpler than
adding a new Makefile option like MULTILIB_REUSE and it allows targets
to fully control the new suffix, which can be an advantage.

However, this solution is not perfect. Especially, MULTILIB_FALLBACK must take
care of freeing "curr_multilib_dir" array, which might not be the best thing to
do. But letting "for_each_path" doing it is created a much more complex code,
which isn't better in my opinion.

Anyway, is a patch like the following one seems possible to be integrated or
should I search for a better solution ?

Thanks,
Clément

Attachment: 0001-gcc-implement-multilib-fallbacks.patch
Description: 0001-gcc-implement-multilib-fallbacks.patch

Reply via email to