VPATH in Makefile(s) for redboot startup code

Jason Riffel jason.riffel@cadreng.com
Mon Dec 22 22:04:00 GMT 2003


I'm assuming this is not a bug because its present in all architectures
under 'libgloss/<ARCH>'.  However, each Makefile.in under libgloss/<ARCH>
contains the following VPATH setting:

VPATH = @srcdir@ @srcdir@/..

which ultimately resolves to:

VPATH = ../../../../../newlib-1.11.current/libgloss/arm
../../../../../newlib-1.11.current/libgloss/arm/..

This seems to confuse my build on NetBSD 1.6 GCC 2.95.3 cross-compiling
for X-Scale, it cannot find the sources until I remove '@srcdir@/..'.  I
solved my problem by removing this, but it's present in the 1.11
distribution as well as CVS current.

I'm more just curious as to why this doesn't work for me and what the
implications of me removing it are.

Thanks in advance,
Jason Riffel
Cadre Engineering, LLC
http://www.cadreng.com
4094 Majestic Lane Suite 226
Fairfax, VA 22033
(703)818-7200 x112
newlib(AT)cadreng.com

"The most exciting phrase to hear in science, the one that heralds new
discoveries, is not 'Eureka!' but 'That's funny...' "
--Isaac Asimov





More information about the Newlib mailing list