* [PATCH] trace-cmd: Cross-compile fixes for LDFLAGS and include path
@ 2011-12-01 0:19 Darren Hart
2011-12-01 1:45 ` Steven Rostedt
0 siblings, 1 reply; 2+ messages in thread
From: Darren Hart @ 2011-12-01 0:19 UTC (permalink / raw)
To: lkml, ; +Cc: Steven Rostedt, Richard Purdie
Add ability for the Makefile to respect LDFLAGS.
Also remove hardcoded /usr/local/include include path.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
---
Makefile | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
Index: git/Makefile
===================================================================
--- git.orig/Makefile
+++ git/Makefile
@@ -202,12 +202,13 @@ export Q VERBOSE
TRACECMD_VERSION = $(TC_VERSION).$(TC_PATCHLEVEL).$(TC_EXTRAVERSION)
KERNELSHARK_VERSION = $(KS_VERSION).$(KS_PATCHLEVEL).$(KS_EXTRAVERSION)
-INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES)
+INCLUDES = -I. $(CONFIG_INCLUDES)
include features.mk
# Set compile option CFLAGS if not set elsewhere
CFLAGS ?= -g -Wall
+LDFLAGS ?=
ifndef NO_PTRACE
ifneq ($(call try-cc,$(SOURCE_PTRACE),),y)
@@ -251,7 +252,7 @@ do_fpic_compile = \
do_app_build = \
($(print_app_build) \
- $(CC) $^ -rdynamic -o $@ $(CONFIG_LIBS) $(LIBS))
+ $(CC) $^ -rdynamic -o $@ $(LDFLAGS) $(CONFIG_LIBS) $(LIBS))
do_compile_shared_library = \
($(print_shared_lib_compile) \
@@ -263,7 +264,7 @@ do_compile_plugin_obj = \
do_plugin_build = \
($(print_plugin_build) \
- $(CC) $(CFLAGS) -shared -nostartfiles -o $@ $<)
+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -nostartfiles -o $@ $<)
do_build_static_lib = \
($(print_static_lib_build) \
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] trace-cmd: Cross-compile fixes for LDFLAGS and include path
2011-12-01 0:19 [PATCH] trace-cmd: Cross-compile fixes for LDFLAGS and include path Darren Hart
@ 2011-12-01 1:45 ` Steven Rostedt
0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2011-12-01 1:45 UTC (permalink / raw)
To: Darren Hart; +Cc: lkml,, Richard Purdie
On Wed, 2011-11-30 at 16:19 -0800, Darren Hart wrote:
> Add ability for the Makefile to respect LDFLAGS.
> Also remove hardcoded /usr/local/include include path.
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
>
Applied, thanks!
-- Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-01 1:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-01 0:19 [PATCH] trace-cmd: Cross-compile fixes for LDFLAGS and include path Darren Hart
2011-12-01 1:45 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox