public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] strace: clear native sysroot references from CFLAGS_FOR_BUILD etc
@ 2016-01-13  1:47 Andre McCurdy
  2016-01-16  9:01 ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Andre McCurdy @ 2016-01-13  1:47 UTC (permalink / raw)
  To: openembedded-core

strace uses CC_FOR_BUILD to compile temporary utility apps to run as
part of the build process. There's no need to build those utils
against the native sysroot though (and things sometimes go wrong if we
do), so clear CFLAGS_FOR_BUILD etc.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
 meta/recipes-devtools/strace/strace_4.11.bb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meta/recipes-devtools/strace/strace_4.11.bb b/meta/recipes-devtools/strace/strace_4.11.bb
index d3e4aef..4506d5b 100644
--- a/meta/recipes-devtools/strace/strace_4.11.bb
+++ b/meta/recipes-devtools/strace/strace_4.11.bb
@@ -15,6 +15,14 @@ SRC_URI[sha256sum] = "e86a5f6cd8f941f67f3e4b28f4e60f3d9185c951cf266404533210a2e5
 
 inherit autotools ptest bluetooth
 
+# strace uses CC_FOR_BUILD to compile temporary utility apps to run as part of
+# the build process. There's no need to build those utils against the native
+# sysroot though, so clear CFLAGS_FOR_BUILD etc.
+CPPFLAGS_FOR_BUILD = ""
+CFLAGS_FOR_BUILD = ""
+CXXFLAGS_FOR_BUILD = ""
+LDFLAGS_FOR_BUILD = ""
+
 RDEPENDS_${PN}-ptest += "make coreutils grep gawk"
 
 PACKAGECONFIG_class-target ??= "\
-- 
1.9.1



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

end of thread, other threads:[~2016-01-16 18:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-13  1:47 [PATCH] strace: clear native sysroot references from CFLAGS_FOR_BUILD etc Andre McCurdy
2016-01-16  9:01 ` Richard Purdie
2016-01-16 18:56   ` Andre McCurdy

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