diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-05 23:25:10 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-07 10:57:50 +0100 |
commit | 2cce411267c19232aa51292f95f2b8e55c0a0457 (patch) | |
tree | edfed66ca86bd090a1de1d3fe98a5201412435b5 /meta/recipes-kernel/trace-cmd/trace-cmd | |
parent | 407c6c4dc810b366ded83c6152d0a2104d13a2e9 (diff) | |
download | poky-2cce411267c19232aa51292f95f2b8e55c0a0457.tar.gz |
kernelshark/trace-cmd: Clean up QA warnings including fising LDFLAGS issues
(From OE-Core rev: b85047e1047e45c2126f2267fe412e9a08d8044a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/trace-cmd/trace-cmd')
-rw-r--r-- | meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch b/meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch new file mode 100644 index 0000000000..8e8f578e61 --- /dev/null +++ b/meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Add ability for the Makefile to respect LDFLAGS. | ||
4 | |||
5 | Also remove hardcoded /usr/local/include include path. | ||
6 | |||
7 | RP 7/5/2011 | ||
8 | |||
9 | Index: git/Makefile | ||
10 | =================================================================== | ||
11 | --- git.orig/Makefile 2011-07-05 11:58:11.699910550 +0100 | ||
12 | +++ git/Makefile 2011-07-05 23:30:12.319920617 +0100 | ||
13 | @@ -189,10 +189,11 @@ | ||
14 | TRACECMD_VERSION = $(TC_VERSION).$(TC_PATCHLEVEL).$(TC_EXTRAVERSION) | ||
15 | KERNELSHARK_VERSION = $(KS_VERSION).$(KS_PATCHLEVEL).$(KS_EXTRAVERSION) | ||
16 | |||
17 | -INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES) | ||
18 | +INCLUDES = -I. $(CONFIG_INCLUDES) | ||
19 | |||
20 | # Set compile option CFLAGS if not set elsewhere | ||
21 | CFLAGS ?= -g -Wall | ||
22 | +LDFLAGS ?= | ||
23 | |||
24 | # Append required CFLAGS | ||
25 | override CFLAGS += $(CONFIG_FLAGS) $(INCLUDES) $(PLUGIN_DIR_SQ) | ||
26 | @@ -225,7 +226,7 @@ | ||
27 | |||
28 | do_app_build = \ | ||
29 | ($(print_app_build) \ | ||
30 | - $(CC) $^ -rdynamic -o $@ $(CONFIG_LIBS) $(LIBS)) | ||
31 | + $(CC) $^ -rdynamic -o $@ $(LDFLAGS) $(CONFIG_LIBS) $(LIBS)) | ||
32 | |||
33 | do_compile_shared_library = \ | ||
34 | ($(print_shared_lib_compile) \ | ||
35 | @@ -237,7 +238,7 @@ | ||
36 | |||
37 | do_plugin_build = \ | ||
38 | ($(print_plugin_build) \ | ||
39 | - $(CC) $(CFLAGS) -shared -nostartfiles -o $@ $<) | ||
40 | + $(CC) $(CFLAGS) $(LDFLAGS) -shared -nostartfiles -o $@ $<) | ||
41 | |||
42 | do_build_static_lib = \ | ||
43 | ($(print_static_lib_build) \ | ||