another makefile bug - prefix, libiberty, and multilib

Daniel Jacobowitz drow+@cs.cmu.edu
Sun Nov 15 23:23:00 GMT 1998


I'm having trouble tracking down a bug with the installation of the nof
(no floating point, -msoft-float libs generated on powerpc) libiberty. 
It seems that the libiberty makefile is not passing 'prefix' down to
its subdirectories:

install: /usr/lib/egcs-ss/lib/nof/libiberty.a.n: No such file or directory
make[4]: *** [install_to_libdir] Error 1
make[3]: *** [multi-do] Error 1
make[2]: *** [install_to_libdir] Error 2
make[1]: *** [install-target-libiberty] Error 2
make: *** [install-stamp] Error 2

even though it was invoked as:
make -C builddir prefix=`pwd`/debian/tmp/usr/lib/egcs-ss

Further investigation reveals that libiberty itself gets put in the
right location, but prefix is not set for it.  How this happens I can't
quite see; libstdc++ manages just fine, and install-target-libstdc++
and install-target-libiberty are obviously the same.



Also, in a separate problem also visible here, multilib refuses to
create the directories under lib/ which it needs under some conditions
- like this one.

Dan



More information about the Gcc-bugs mailing list