dietlibc vs multilib
Jakub Bogusz
qboosh at pld-linux.org
Sat Dec 30 23:48:34 CET 2006
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/
More information about the pld-devel-en
mailing list