Subject: build.sh fails on crossbuilds with obj dirs
To: None <current-users@netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: current-users
Date: 10/23/2003 10:15:09
At least on i386 and evpppc:

  dependall ===> regress/lib/libc/siginfo
  dependall ===> regress/lib/libc/siginfo/sigalrm
  #    create  sigalrm.d
  CC=XXX-gcc XXX/nbmkdep -f sigalrm.d -nostdinc -isystem XXX/usr/include sigalrm.c
  nbmkdep: unable to write to file sigalrm.d

Reason is the missing obj dir.
The test in src/regress/lib/libc/Makefile doesn't work for `make obj'
because the ${DESTDIR} is not filled yet.

Is this ok?

-.if (${HAVE_SIGINFO} == "yes")
 SUBDIR+= siginfo
 .endif

+.if (make(obj) || ${HAVE_SIGINFO} == "yes")
 SUBDIR+= siginfo
 .endif

-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)