Current location of dietlibc files doesn't allow multilib installs with
single "diet" wrapper.

When both dietlibc* suites are installed:

both
$ diet sparc64-pld-linux-gcc -o c c.c
$ diet sparc-pld-linux-gcc -m64 -o c c.c
pass, but:
$ diet sparc-pld-linux-gcc -m32 -o c c.c
sparc-pld-linux-gcc: /usr/sparc64-linux-dietlibc/lib-sparc/start.o: No such 
file or directory
sparc-pld-linux-gcc: /usr/sparc64-linux-dietlibc/lib-sparc/libc.a: No such file 
or directory
sparc-pld-linux-gcc: /usr/sparc64-linux-dietlibc/lib-sparc/libc.a: No such file 
or directory

Of course after reinstalling dietlibc-devel.sparc sparc builds will
work and sparc64 won't.

So my proposal is to use %{_prefix}/lib/dietlibc as %dietprefix.
dietlibc keeps arch-dependent files in per-arch subdirectory.


-- 
Jakub Bogusz    http://qboosh.pl/
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to