summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2014-04-16 11:33:18 +0000
committerJulian Ospald <hasufell@gentoo.org>2014-04-16 11:33:18 +0000
commite7a2a7bfb69c7f94a8c6068e19addb13ed8c9ec1 (patch)
tree3a83e5fc8fca2483826a3b786da23fb1b41ae437 /eclass/waf-utils.eclass
parent[sys-cluster/ofed] Crazy fix (diff)
downloadgentoo-2-e7a2a7bfb69c7f94a8c6068e19addb13ed8c9ec1.tar.gz
gentoo-2-e7a2a7bfb69c7f94a8c6068e19addb13ed8c9ec1.tar.bz2
gentoo-2-e7a2a7bfb69c7f94a8c6068e19addb13ed8c9ec1.zip
respect CFLAGS in linking command wrt #506956
Diffstat (limited to 'eclass/waf-utils.eclass')
-rw-r--r--eclass/waf-utils.eclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass
index 0d558d80c874..2013f4d775ca 100644
--- a/eclass/waf-utils.eclass
+++ b/eclass/waf-utils.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/waf-utils.eclass,v 1.18 2013/11/23 04:35:16 jcallen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/waf-utils.eclass,v 1.19 2014/04/16 11:33:18 hasufell Exp $
# @ECLASS: waf-utils.eclass
# @MAINTAINER:
@@ -56,18 +56,18 @@ waf-utils_src_configure() {
[[ -z ${NO_WAF_LIBDIR} ]] && libdir="--libdir=${EPREFIX}/usr/$(get_libdir)"
tc-export AR CC CPP CXX RANLIB
- echo "CCFLAGS=\"${CFLAGS}\" LINKFLAGS=\"${LDFLAGS}\" \"${WAF_BINARY}\" --prefix=${EPREFIX}/usr ${libdir} $@ configure"
+ echo "CCFLAGS=\"${CFLAGS}\" LINKFLAGS=\"${CFLAGS} ${LDFLAGS}\" \"${WAF_BINARY}\" --prefix=${EPREFIX}/usr ${libdir} $@ configure"
# This condition is required because waf takes even whitespace as function
# calls, awesome isn't it?
if [[ -z ${NO_WAF_LIBDIR} ]]; then
- CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" "${WAF_BINARY}" \
+ CCFLAGS="${CFLAGS}" LINKFLAGS="${CFLAGS} ${LDFLAGS}" "${WAF_BINARY}" \
"--prefix=${EPREFIX}/usr" \
"${libdir}" \
"$@" \
configure || die "configure failed"
else
- CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" "${WAF_BINARY}" \
+ CCFLAGS="${CFLAGS}" LINKFLAGS="${CFLAGS} ${LDFLAGS}" "${WAF_BINARY}" \
"--prefix=${EPREFIX}/usr" \
"$@" \
configure || die "configure failed"