From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-devhelp+bounces-122-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1QMBHF-0000vj-9O
	for garchives@archives.gentoo.org; Tue, 17 May 2011 03:48:57 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 1A1B91C0B6;
	Tue, 17 May 2011 03:48:33 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 9F4AB1C0B6
	for <gentoo-devhelp@lists.gentoo.org>; Tue, 17 May 2011 03:48:33 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id 2FD431BC01F
	for <gentoo-devhelp@lists.gentoo.org>; Tue, 17 May 2011 03:48:33 +0000 (UTC)
X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org
X-Spam-Score: -2.857
X-Spam-Level: 
X-Spam-Status: No, score=-2.857 required=5.5 tests=[AWL=-0.258,
	BAYES_00=-2.599]
Received: from smtp.gentoo.org ([127.0.0.1])
	by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Q-qZs9ZFS+7F for <gentoo-devhelp@lists.gentoo.org>;
	Tue, 17 May 2011 03:48:27 +0000 (UTC)
Received: from lo.gmane.org (lo.gmane.org [80.91.229.12])
	by smtp.gentoo.org (Postfix) with ESMTP id 020331BC017
	for <gentoo-devhelp@gentoo.org>; Tue, 17 May 2011 03:48:22 +0000 (UTC)
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <glgd-gentoo-devhelp@m.gmane.org>)
	id 1QMBGd-0002Hn-PT
	for gentoo-devhelp@gentoo.org; Tue, 17 May 2011 05:48:19 +0200
Received: from athedsl-394644.home.otenet.gr ([79.131.93.146])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <gentoo-devhelp@gentoo.org>; Tue, 17 May 2011 05:48:19 +0200
Received: from realnc by athedsl-394644.home.otenet.gr with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <gentoo-devhelp@gentoo.org>; Tue, 17 May 2011 05:48:19 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: gentoo-devhelp@lists.gentoo.org
From: Nikos Chantziaras <realnc@arcor.de>
Subject: [gentoo-devhelp] How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
Date: Tue, 17 May 2011 06:48:08 +0300
Organization: Lucas Barks
Message-ID: <iqsr5o$qbk$1@dough.gmane.org>
Precedence: bulk
List-Post: <mailto:gentoo-devhelp@lists.gentoo.org>
List-Help: <mailto:gentoo-devhelp+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-devhelp+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-devhelp+subscribe@lists.gentoo.org>
List-Id: Gentoo Development-related help <gentoo-devhelp.gentoo.org>
X-BeenThere: gentoo-devhelp@gentoo.org
X-BeenThere: gentoo-devhelp@lists.gentoo.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@dough.gmane.org
X-Gmane-NNTP-Posting-Host: athedsl-394644.home.otenet.gr
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110430 Thunderbird/3.1.10
X-Archives-Salt: 
X-Archives-Hash: 8d8038668931321d9d96b8514e0bfa11

I wrote an ebuild for a software that uses SCons as its build system. My 
guide was scons-utils.eclass and some other ebuilds that were using it. 
It pretty much boils down to:

   src_compile()
   {
	tc-export CC CXX
	append-cflags -Wno-error
	append-cxxflags -Wno-error
	escons PREFIX=/usr DESTDIR="${D}" || die
   }

   src_install()
   {
	escons PREFIX=/usr DESTDIR="${D}" install || die
   }

But it ignores the CFLAGS/CXXFLAGS/LDFLAGS set in make.conf, and 
append-cflags and append-cxxflags does nothing (-Wno-error is not used 
in the resulting build.)

I'm not sure where to go from here.