summaryrefslogtreecommitdiff
path: root/eclass/bjam.eclass
blob: f2007d9ea138a93536538027ed85cda0ab01485b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Distributed under the terms of the GNU General Public License v2

# @ECLASS: bjam.eclass
# @MAINTAINER:
# randomdan
# @AUTHOR:
# randomdan
# @BLURB: 
# @DESCRIPTION:

src_prepare() {
	ebegin "Setting portage CXX and LD flags"
	sed -i "s|^using gcc .*|using gcc : : : <compileflags>\"${CXXFLAGS}\" <linkflags>\"${LDFLAGS}\" ;|" ${S}/Jamroot.jam
	eend $?
}

bjambuild() {
	setarch $(uname -m) -RL b2 ${BJAMOPTS} variant=release -q $@
}