From 298c7375b35d02c642650e30a9442dd4b0002bf3 Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Wed, 31 Aug 2011 16:03:56 +0000 Subject: Respect CFLAGS/LDFLAGS properly. (Portage version: 2.2.0_alpha51/cvs/Linux x86_64) --- www-apache/mod_auth_token/ChangeLog | 6 +++++- .../mod_auth_token/mod_auth_token-1.0.6_beta.ebuild | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) (limited to 'www-apache/mod_auth_token') diff --git a/www-apache/mod_auth_token/ChangeLog b/www-apache/mod_auth_token/ChangeLog index 61a7721dd99e..a49ddc6c5036 100644 --- a/www-apache/mod_auth_token/ChangeLog +++ b/www-apache/mod_auth_token/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for www-apache/mod_auth_token # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_auth_token/ChangeLog,v 1.2 2011/08/31 15:55:41 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_auth_token/ChangeLog,v 1.3 2011/08/31 16:03:56 flameeyes Exp $ + + 31 Aug 2011; Diego E. Pettenò + mod_auth_token-1.0.6_beta.ebuild: + Respect CFLAGS/LDFLAGS properly. 31 Aug 2011; Diego E. Pettenò mod_auth_token-1.0.6_beta.ebuild: diff --git a/www-apache/mod_auth_token/mod_auth_token-1.0.6_beta.ebuild b/www-apache/mod_auth_token/mod_auth_token-1.0.6_beta.ebuild index 30d9ce57b954..e50dc62639cd 100644 --- a/www-apache/mod_auth_token/mod_auth_token-1.0.6_beta.ebuild +++ b/www-apache/mod_auth_token/mod_auth_token-1.0.6_beta.ebuild @@ -29,3 +29,19 @@ S="${WORKDIR}/${PN}" src_prepare() { epatch "${FILESDIR}"/${P}-ap_pstrcat.patch } + +src_compile() { + local flag= + APXS2_ARGS= + + for flag in ${CFLAGS}; do + APXS2_ARGS+=" -Wc,${flag}" + done + + for flag in ${LDFLAGS}; do + APXS2_ARGS+=" -Wl,${flag}" + done + + APXS2_ARGS="${APXS2_ARGS} -c ${PN}.c" + apache-module_src_compile +} -- cgit v1.2.3-65-gdbad