From 1370bd4ed239f641e757d2c9300ddda2bdd2b477 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 23 Feb 2016 07:30:25 +0100 Subject: [PATCH] c-ares: unbreak cross compilation. --- srcpkgs/c-ares/template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/c-ares/template b/srcpkgs/c-ares/template index 391ae1655d..c96b35b48b 100644 --- a/srcpkgs/c-ares/template +++ b/srcpkgs/c-ares/template @@ -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() {