Follow-up Comment #1, bug #30914 (project make): I have hit this in the context of cross-compilation, where a dependency problem was undiagnosed due to a system library being found rather than the correct target system lib. The makefile had a bug whereby the correct sysroot lib paths for the target system were not added to vpath for %.so and %.a. This caused the makefile to work okay on systems where the dependent lib happened to be installed natively on the build system but fail to find prerequisites if that wasn't the case.
For cross-compilation it is almost never useful to search /lib and /usr/lib for library dependencies. I have made a patch against the latest CVS which adds support for a new special variable '.SYSLIBDIRS' which, if set, overrides the hardcoded build-time built-ins. The patch also adds support for synthesising default values into this variable by specifying an alternative sysroot via the CROSS_SYSROOT environment variable. The patch is available at https://bitbucket.org/abutcher/gmake-ajb/commits/e484dc0 The make.texi is updated with usage info. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?30914> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make