diff options
Diffstat (limited to 'meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch')
| -rw-r--r-- | meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch b/meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch deleted file mode 100644 index 14730db905..0000000000 --- a/meta/recipes-kernel/trace-cmd/trace-cmd/addldflags.patch +++ /dev/null | |||
| @@ -1,51 +0,0 @@ | |||
| 1 | trace-cmd: Cross-compile fixes for LDFLAGS and include path | ||
| 2 | |||
| 3 | Add ability for the Makefile to respect LDFLAGS. | ||
| 4 | Also remove hardcoded /usr/local/include include path. | ||
| 5 | |||
| 6 | Upstream-Status: Accepted [Post 1.2: 5f576e9af7ad706774d9764a9ae3989376797c0e] | ||
| 7 | |||
| 8 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 9 | Signed-off-by: Darren Hart <dvhart@linux.intel.com> | ||
| 10 | |||
| 11 | --- | ||
| 12 | Makefile | 7 ++++--- | ||
| 13 | 1 file changed, 4 insertions(+), 3 deletions(-) | ||
| 14 | |||
| 15 | Index: git/Makefile | ||
| 16 | =================================================================== | ||
| 17 | --- git.orig/Makefile | ||
| 18 | +++ git/Makefile | ||
| 19 | @@ -202,12 +202,13 @@ export Q VERBOSE | ||
| 20 | TRACECMD_VERSION = $(TC_VERSION).$(TC_PATCHLEVEL).$(TC_EXTRAVERSION) | ||
| 21 | KERNELSHARK_VERSION = $(KS_VERSION).$(KS_PATCHLEVEL).$(KS_EXTRAVERSION) | ||
| 22 | |||
| 23 | -INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES) | ||
| 24 | +INCLUDES = -I. $(CONFIG_INCLUDES) | ||
| 25 | |||
| 26 | include features.mk | ||
| 27 | |||
| 28 | # Set compile option CFLAGS if not set elsewhere | ||
| 29 | CFLAGS ?= -g -Wall | ||
| 30 | +LDFLAGS ?= | ||
| 31 | |||
| 32 | ifndef NO_PTRACE | ||
| 33 | ifneq ($(call try-cc,$(SOURCE_PTRACE),),y) | ||
| 34 | @@ -251,7 +252,7 @@ do_fpic_compile = \ | ||
| 35 | |||
| 36 | do_app_build = \ | ||
| 37 | ($(print_app_build) \ | ||
| 38 | - $(CC) $^ -rdynamic -o $@ $(CONFIG_LIBS) $(LIBS)) | ||
| 39 | + $(CC) $^ -rdynamic -o $@ $(LDFLAGS) $(CONFIG_LIBS) $(LIBS)) | ||
| 40 | |||
| 41 | do_compile_shared_library = \ | ||
| 42 | ($(print_shared_lib_compile) \ | ||
| 43 | @@ -263,7 +264,7 @@ do_compile_plugin_obj = \ | ||
| 44 | |||
| 45 | do_plugin_build = \ | ||
| 46 | ($(print_plugin_build) \ | ||
| 47 | - $(CC) $(CFLAGS) -shared -nostartfiles -o $@ $<) | ||
| 48 | + $(CC) $(CFLAGS) $(LDFLAGS) -shared -nostartfiles -o $@ $<) | ||
| 49 | |||
| 50 | do_build_static_lib = \ | ||
| 51 | ($(print_static_lib_build) \ | ||
