On Wed, Aug 24, 2005 at 10:08:21AM -1000, Glen Nakamura wrote:
> On Wed, Aug 24, 2005 at 02:50:04PM -0500, Jolan Luff wrote:
> > OpenBSD/amd64 with gcc 3.3.5.  I noticed that with 3.2.2 it was possible
> > to run "make test" without having done "make" first and this is no
> > longer the case with CVS HEAD.
> 
> The problem could be the following lines in Makefile.in:
> 
> # In LIBOBJ but not TESTSRC
> COMMONOBJ = $(foreach obj,$(LIBOBJ),\
>       $(if $(findstring $(patsubst %.lo,%.c,$(obj)),$(TESTSRC)),,$(obj)))
> 
> This is the patch which added these lines:
> http://www.sqlite.org/cvstrac/filediff?f=sqlite/Makefile.in&v1=1.130&v2=1.131
> 
> Possible GNU-make-ism.  I don't think BSD make supports functions
> like foreach.  You'll need to build with gmake unless the above lines
> are rewritten to be compatible with BSD make.

Using GNU make instead of BSD make does let things work again.  Usually
BSD make is pretty good about detecting GNU make idioms and erroring out
gracefully but apparently not this time.

Thanks for the hint.

Reply via email to