diff options
author | Fahad Usman <fahad_usman@mentor.com> | 2012-12-12 16:26:11 +0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-17 17:24:53 +0000 |
commit | ec70f9ec3b14b99de5a70b86b4e096e941c9dbad (patch) | |
tree | 4263309337e8861021a12db67f20bd6c80bb327b /meta | |
parent | eef3b8d869bf36e96c43309ca437d9832bd90a2d (diff) | |
download | poky-ec70f9ec3b14b99de5a70b86b4e096e941c9dbad.tar.gz |
perf: pass CFLAGS and LDFLAGS
(From OE-Core rev: 373371432b72cb19600a45e741afdfcb9662ecfb)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
the patch was imported from meta-mentor layer on yoctoproject git server
http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor as of commit id
9d698004137c1a888d40d6a4808d94afa22387e7
Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/perf/perf_3.4.bb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf_3.4.bb b/meta/recipes-kernel/perf/perf_3.4.bb index 4e6d03d005..8d1b2324b3 100644 --- a/meta/recipes-kernel/perf/perf_3.4.bb +++ b/meta/recipes-kernel/perf/perf_3.4.bb | |||
@@ -9,7 +9,7 @@ as well." | |||
9 | LICENSE = "GPLv2" | 9 | LICENSE = "GPLv2" |
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
11 | 11 | ||
12 | PR = "r6" | 12 | PR = "r8" |
13 | 13 | ||
14 | require perf.inc | 14 | require perf.inc |
15 | 15 | ||
@@ -67,6 +67,14 @@ EXTRA_OEMAKE = \ | |||
67 | NO_GTK2=1 ${TUI_DEFINES} NO_DWARF=1 ${SCRIPTING_DEFINES} \ | 67 | NO_GTK2=1 ${TUI_DEFINES} NO_DWARF=1 ${SCRIPTING_DEFINES} \ |
68 | ' | 68 | ' |
69 | 69 | ||
70 | # We already pass the correct arguments to our compiler for the CFLAGS (if we | ||
71 | # don't override it, it'll add -m32/-m64 itself). For LDFLAGS, it was failing | ||
72 | # to find bfd symbols. | ||
73 | EXTRA_OEMAKE += "\ | ||
74 | 'CFLAGS=${CFLAGS}' \ | ||
75 | 'LDFLAGS=${LDFLAGS} -lpthread -lrt -lelf -lm -lbfd' \ | ||
76 | " | ||
77 | |||
70 | do_compile() { | 78 | do_compile() { |
71 | oe_runmake all | 79 | oe_runmake all |
72 | } | 80 | } |