c-ares: unbreak cross compilation.

This commit is contained in:
Juan RP 2016-02-23 07:30:25 +01:00
parent b0d18aac7b
commit 1370bd4ed2
1 changed files with 4 additions and 2 deletions

View File

@ -13,9 +13,11 @@ checksum=b3612e6617d9682928a1d50c1040de4db6519f977f0b25d40cf1b632900b3efd
pre_configure() {
case "$CFLAGS" in
*"-D_FORTIFY_SOURCE=2"*)
CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/}
CPPFLAGS+=" -D_FORTIFY_SOURCE=2"
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=?/}
export CPPFLAGS+=" -D_FORTIFY_SOURCE=2"
;;
esac
export CFLAGS=${CFLAGS/-I${XBPS_CROSS_BASE}\/usr\/include/}
}
c-ares-devel_package() {