public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] waf-utils.eclass: respect CFLAGS in linking command
@ 2014-04-06 15:45 hasufell
  2014-04-06 23:12 ` [gentoo-dev] " Ryan Hill
  0 siblings, 1 reply; 2+ messages in thread
From: hasufell @ 2014-04-06 15:45 UTC (permalink / raw
  To: gentoo-dev; +Cc: gnome

respect CFLAGS in linking command
https://bugs.gentoo.org/show_bug.cgi?id=506956

--- eclass/waf-utils.eclass
+++ eclass/waf-utils.eclass
@@ -56,18 +56,18 @@
 	[[ -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"


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-06 23:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-06 15:45 [gentoo-dev] [PATCH] waf-utils.eclass: respect CFLAGS in linking command hasufell
2014-04-06 23:12 ` [gentoo-dev] " Ryan Hill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox