Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-devhelp
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-devhelp@g.o
From: Nikos Chantziaras <realnc@...>
Subject: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
Date: Tue, 17 May 2011 06:48:08 +0300
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.



Replies:
Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
-- Nikos Chantziaras
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
pkg-config new ebuild - howto
Next by thread:
Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
Previous by date:
Re: pkg-config new ebuild - howto
Next by date:
Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?


Updated Jun 03, 2012

Summary: Archive of the gentoo-devhelp mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.