From owner-freebsd-ports@FreeBSD.ORG Tue Nov 28 00:10:26 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D7E7E16A47B; Tue, 28 Nov 2006 00:10:26 +0000 (UTC) (envelope-from karel@lovetemple.net) Received: from mta2.siol.net (mta2.siol.net [193.189.160.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79B52448BE; Mon, 27 Nov 2006 22:52:24 +0000 (GMT) (envelope-from karel@lovetemple.net) Received: from edge2.siol.net ([10.10.10.211]) by mta1.siol.net with ESMTP id <20061127214332.TJBX15340.mta1.siol.net@edge2.siol.net>; Mon, 27 Nov 2006 22:43:32 +0100 Received: from [192.168.0.149] (really [89.142.122.102]) by edge2.siol.net with ESMTP id <20061127214326.PKPM1846.edge2.siol.net@[192.168.0.149]>; Mon, 27 Nov 2006 22:43:26 +0100 Message-ID: <456B5BF1.9080200@lovetemple.net> Date: Mon, 27 Nov 2006 22:43:13 +0100 From: Karel Miklav User-Agent: Thunderbird 1.5.0.8 (X11/20061111) MIME-Version: 1.0 To: alexbl@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: SCons build, help needed X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2006 00:10:26 -0000 I'm trying to make a port of the latest Blender with the SCons build. The scons command in the do-build target in bsd.scons.mk is expanded in: /usr/bin/env /usr/local/bin/scons \ CCFLAGS="-O2 -fno-strict-aliasing -pipe" \ CXXFLAGS="-O2 -fno-strict-aliasing -pipe" ... Which gives an error: scons: Building targets ... Compiling ==> 'SND_DummyDevice.cpp' cc1plus: error: invalid option argument `-O2 -fno-strict-aliasing -pipe' scons: *** [/usr/home/ ... /SoundSystem/dummy/SND_DummyDevice.o] Error 1 scons: building terminated because of errors. The problem is in the CCFLAGS variable; it is passed to the compiler as a whole, white spaces between individual flags are ignored. Should I rewrite variables in some other syntax or what? Thanks.