mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 06:51:26 +02:00
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:
parent
077cb365de
commit
a5190f09dc
@ -30,19 +30,23 @@ src_prepare() {
|
|||||||
|
|
||||||
# https://code.google.com/p/serf/issues/detail?id=133
|
# https://code.google.com/p/serf/issues/detail?id=133
|
||||||
sed -e "/env.Append(CCFLAGS=\['-O2'\])/d" -i SConstruct
|
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() {
|
src_compile() {
|
||||||
local myesconsargs=(
|
local myesconsargs=(
|
||||||
PREFIX="${EPREFIX}/usr"
|
PREFIX="${EPREFIX}/usr"
|
||||||
LIBDIR="${EPREFIX}/usr/$(get_libdir)"
|
LIBDIR="${EPREFIX}/usr/$(get_libdir)"
|
||||||
APR="${EPREFIX}/usr/bin/apr-1-config"
|
APR="${EROOT}usr/bin/apr-1-config"
|
||||||
APU="${EPREFIX}/usr/bin/apu-1-config"
|
APU="${EROOT}usr/bin/apu-1-config"
|
||||||
OPENSSL="${EPREFIX}/usr"
|
OPENSSL="${EROOT}usr"
|
||||||
CC="$(tc-getCC)"
|
CC="$(tc-getCC)"
|
||||||
CPPFLAGS="${CPPFLAGS}"
|
CPPFLAGS="${CPPFLAGS}"
|
||||||
CFLAGS="${CFLAGS}"
|
CFLAGS="${CFLAGS}"
|
||||||
LINKFLAGS="${LDFLAGS}"
|
LINKFLAGS="${LDFLAGS} --sysroot=${SYSROOT}"
|
||||||
)
|
)
|
||||||
|
|
||||||
if use kerberos; then
|
if use kerberos; then
|
Loading…
x
Reference in New Issue
Block a user