Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: need help compiling crafty 19 for freebsd

Author: Gareth McCaughan

Date: 16:40:02 01/26/03

Go up one level in this thread


On January 26, 2003 at 17:14:56, ERIQ wrote:

>On January 26, 2003 at 16:38:46, ERIQ wrote:
>
>>I think it's the make file but not sure using gcc 3.2
>I keep geting 'make: illegal option -- p'

Use "gmake" instead of "make". "gmake" is what FreeBSD calls GNU make.
I guess they have different quoting or substitution rules; what
happens is that the "freebsd" target says something like

    freebsd: make target=freebsd CFLAGS='....' CXFLAGS=$(CXFLAGS) crafty-make

and with FreeBSD's "make" those CXFLAGS don't get quoted, so that
all but the first word of them get treated as arguments to "make"
instead of being passed through to the C compiler. Oops. :-)

All this pain goes away if you say "gmake freebsd" instead of "make freebsd".

--
g



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.