c-ares: unbreak cross compilation.
This commit is contained in:
parent
b0d18aac7b
commit
1370bd4ed2
|
@ -13,9 +13,11 @@ checksum=b3612e6617d9682928a1d50c1040de4db6519f977f0b25d40cf1b632900b3efd
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
case "$CFLAGS" in
|
case "$CFLAGS" in
|
||||||
*"-D_FORTIFY_SOURCE=2"*)
|
*"-D_FORTIFY_SOURCE=2"*)
|
||||||
CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/}
|
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=?/}
|
||||||
CPPFLAGS+=" -D_FORTIFY_SOURCE=2"
|
export CPPFLAGS+=" -D_FORTIFY_SOURCE=2"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
export CFLAGS=${CFLAGS/-I${XBPS_CROSS_BASE}\/usr\/include/}
|
||||||
}
|
}
|
||||||
|
|
||||||
c-ares-devel_package() {
|
c-ares-devel_package() {
|
||||||
|
|
Loading…
Reference in New Issue