Gentoo Archives: gentoo-devhelp

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-devhelp@l.g.o
Subject: [gentoo-devhelp] How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
Date: Tue, 17 May 2011 03:48:57
Message-Id: iqsr5o$qbk$1@dough.gmane.org
1 I wrote an ebuild for a software that uses SCons as its build system. My
2 guide was scons-utils.eclass and some other ebuilds that were using it.
3 It pretty much boils down to:
4
5 src_compile()
6 {
7 tc-export CC CXX
8 append-cflags -Wno-error
9 append-cxxflags -Wno-error
10 escons PREFIX=/usr DESTDIR="${D}" || die
11 }
12
13 src_install()
14 {
15 escons PREFIX=/usr DESTDIR="${D}" install || die
16 }
17
18 But it ignores the CFLAGS/CXXFLAGS/LDFLAGS set in make.conf, and
19 append-cflags and append-cxxflags does nothing (-Wno-error is not used
20 in the resulting build.)
21
22 I'm not sure where to go from here.

Replies

Subject Author
[gentoo-devhelp] Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS? Nikos Chantziaras <realnc@×××××.de>