net-libs/serf: Fix cross compile build error

Ebuild fixups for cross compiling.
Bumps serf-1.3.8.ebuild to serf-1.3.8-r1.ebuild.

Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
Geoff Levand 2015-07-23 15:21:05 -07:00
parent 077cb365de
commit a5190f09dc

View File

@ -30,19 +30,23 @@ src_prepare() {
# https://code.google.com/p/serf/issues/detail?id=133
sed -e "/env.Append(CCFLAGS=\['-O2'\])/d" -i SConstruct
# Accept C++ comments in system headers.
# Fixes error: expected identifier or '(' before '/' token
sed -e "s/-std=c89//" -i SConstruct
}
src_compile() {
local myesconsargs=(
PREFIX="${EPREFIX}/usr"
LIBDIR="${EPREFIX}/usr/$(get_libdir)"
APR="${EPREFIX}/usr/bin/apr-1-config"
APU="${EPREFIX}/usr/bin/apu-1-config"
OPENSSL="${EPREFIX}/usr"
APR="${EROOT}usr/bin/apr-1-config"
APU="${EROOT}usr/bin/apu-1-config"
OPENSSL="${EROOT}usr"
CC="$(tc-getCC)"
CPPFLAGS="${CPPFLAGS}"
CFLAGS="${CFLAGS}"
LINKFLAGS="${LDFLAGS}"
LINKFLAGS="${LDFLAGS} --sysroot=${SYSROOT}"
)
if use kerberos; then