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. |