* [PATCH trace-cmd 0/1] Makefile: Use CPPFLAGS from the environment
@ 2014-01-06 17:56 Seth Forshee
2014-01-06 17:56 ` [PATCH trace-cmd 1/1] " Seth Forshee
2014-01-06 19:07 ` [PATCH trace-cmd 0/1] " Steven Rostedt
0 siblings, 2 replies; 7+ messages in thread
From: Seth Forshee @ 2014-01-06 17:56 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-kernel, Seth Forshee
Hi Steve,
Here's another patch for trace-cmd that I'm using in Debian. Please
consider it for your tree.
It also looks like you haven't applied the patches I sent a few months
back [1][2]. I'm guessing you just forgot about them, but please let me
know if there's something I need to fix. I also pushed out all of these
patches if you'd prefer to do a pull:
git://kernel.ubuntu.com/sforshee/trace-cmd.git for-upstream
Thanks,
Seth
[1] http://www.spinics.net/lists/kernel/msg1625190.html
[2] http://www.spinics.net/lists/kernel/msg1629025.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH trace-cmd 1/1] Makefile: Use CPPFLAGS from the environment
2014-01-06 17:56 [PATCH trace-cmd 0/1] Makefile: Use CPPFLAGS from the environment Seth Forshee
@ 2014-01-06 17:56 ` Seth Forshee
2014-01-06 19:07 ` [PATCH trace-cmd 0/1] " Steven Rostedt
1 sibling, 0 replies; 7+ messages in thread
From: Seth Forshee @ 2014-01-06 17:56 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-kernel, Seth Forshee
CPPFLAGS is commonly used for preprecessor definitions which
should be used when compiling C and C++ files. In particular,
Debian uses it to pass hardening flags and expects those flags
to be used.
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
---
Makefile | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/Makefile b/Makefile
index a2ba385..f097bbc 100644
--- a/Makefile
+++ b/Makefile
@@ -220,6 +220,7 @@ include features.mk
# Set compile option CFLAGS if not set elsewhere
CFLAGS ?= -g -Wall
+CPPFLAGS ?=
LDFLAGS ?=
# Required CFLAGS
@@ -263,7 +264,7 @@ endif
do_fpic_compile = \
($(print_fpic_compile) \
- $(CC) -c $(CFLAGS) $(EXT) -fPIC $< -o $@)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(EXT) -fPIC $< -o $@)
do_app_build = \
($(print_app_build) \
@@ -275,7 +276,7 @@ do_compile_shared_library = \
do_compile_plugin_obj = \
($(print_plugin_obj_compile) \
- $(CC) -c $(CFLAGS) -fPIC -o $@ $<)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) -fPIC -o $@ $<)
do_plugin_build = \
($(print_plugin_build) \
@@ -291,7 +292,7 @@ define check_gui
$(REBUILD_GUI); \
else \
$(print_compile) \
- $(CC) -c $(CFLAGS) $(EXT) $< -o $(obj)/$@; \
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(EXT) $< -o $(obj)/$@; \
fi;
endef
@@ -449,10 +450,10 @@ define check_gui_deps
if [ $(BUILDGUI) -ne 1 ]; then \
$(REBUILD_GUI); \
else \
- $(CC) -M $(CFLAGS) $< > $@; \
+ $(CC) -M $(CPPFLAGS) $(CFLAGS) $< > $@; \
fi \
elif [ $(BUILDGUI) -eq 0 ]; then \
- $(CC) -M $(CFLAGS) $< > $@; \
+ $(CC) -M $(CPPFLAGS) $(CFLAGS) $< > $@; \
else \
echo SKIPPING $@; \
fi;
@@ -569,12 +570,12 @@ PYGTK_CFLAGS = `pkg-config --cflags pygtk-2.0`
ctracecmd.so: $(TCMD_LIB_OBJS) ctracecmd.i
swig -Wall -python -noproxy ctracecmd.i
- $(CC) -fpic -c $(CFLAGS) $(PYTHON_INCLUDES) ctracecmd_wrap.c
+ $(CC) -fpic -c $(CPPFLAGS) $(CFLAGS) $(PYTHON_INCLUDES) ctracecmd_wrap.c
$(CC) --shared $(TCMD_LIB_OBJS) $(LDFLAGS) ctracecmd_wrap.o -o ctracecmd.so
ctracecmdgui.so: $(TRACE_VIEW_OBJS) $(LIB_FILE)
swig -Wall -python -noproxy ctracecmdgui.i
- $(CC) -fpic -c $(CFLAGS) $(INCLUDES) $(PYTHON_INCLUDES) $(PYGTK_CFLAGS) ctracecmdgui_wrap.c
+ $(CC) -fpic -c $(CPPFLAGS) $(CFLAGS) $(INCLUDES) $(PYTHON_INCLUDES) $(PYGTK_CFLAGS) ctracecmdgui_wrap.c
$(CC) --shared $^ $(LDFLAGS) $(LIBS) $(CONFIG_LIBS) ctracecmdgui_wrap.o -o ctracecmdgui.so
PHONY += python
@@ -590,7 +591,7 @@ CFLAGS_plugin_python.o += $(PYTHON_DIR_SQ)
do_compile_python_plugin_obj = \
($(print_plugin_obj_compile) \
- $(CC) -c $(CFLAGS) $(CFLAGS_$@) $(PYTHON_INCLUDES) -fPIC -o $@ $<)
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $(CFLAGS_$@) $(PYTHON_INCLUDES) -fPIC -o $@ $<)
do_python_plugin_build = \
($(print_plugin_build) \
--
1.8.3.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH trace-cmd 0/1] Makefile: Use CPPFLAGS from the environment
2014-01-06 17:56 [PATCH trace-cmd 0/1] Makefile: Use CPPFLAGS from the environment Seth Forshee
2014-01-06 17:56 ` [PATCH trace-cmd 1/1] " Seth Forshee
@ 2014-01-06 19:07 ` Steven Rostedt
2014-01-06 19:36 ` Seth Forshee
1 sibling, 1 reply; 7+ messages in thread
From: Steven Rostedt @ 2014-01-06 19:07 UTC (permalink / raw)
To: Seth Forshee; +Cc: linux-kernel
On Mon, 6 Jan 2014 11:56:24 -0600
Seth Forshee <seth.forshee@canonical.com> wrote:
> Hi Steve,
>
> Here's another patch for trace-cmd that I'm using in Debian. Please
> consider it for your tree.
>
> It also looks like you haven't applied the patches I sent a few months
> back [1][2]. I'm guessing you just forgot about them, but please let me
> know if there's something I need to fix. I also pushed out all of these
> patches if you'd prefer to do a pull:
I actually applied everything, and a lot more updates that I never
pushed.
Anyway, thanks! I applied this too and pushed it up.
-- Steve
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH trace-cmd 0/1] Makefile: Use CPPFLAGS from the environment
2014-01-06 19:07 ` [PATCH trace-cmd 0/1] " Steven Rostedt
@ 2014-01-06 19:36 ` Seth Forshee
2014-01-06 19:54 ` Steven Rostedt
0 siblings, 1 reply; 7+ messages in thread
From: Seth Forshee @ 2014-01-06 19:36 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-kernel
On Mon, Jan 06, 2014 at 02:07:53PM -0500, Steven Rostedt wrote:
> On Mon, 6 Jan 2014 11:56:24 -0600
> Seth Forshee <seth.forshee@canonical.com> wrote:
>
> > Hi Steve,
> >
> > Here's another patch for trace-cmd that I'm using in Debian. Please
> > consider it for your tree.
> >
> > It also looks like you haven't applied the patches I sent a few months
> > back [1][2]. I'm guessing you just forgot about them, but please let me
> > know if there's something I need to fix. I also pushed out all of these
> > patches if you'd prefer to do a pull:
>
> I actually applied everything, and a lot more updates that I never
> pushed.
>
> Anyway, thanks! I applied this too and pushed it up.
Thanks!
There is something odd about the updates you pushed though. You've now
got a version 2.2.1 on your trace-cmd-stable-v2.2 branch, which used to
be tagged trace-cmd-v2.2.1, and another 2.2.1 on master which now has
that tag. I'm guessing that's not what you intended to do?
Seth
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH trace-cmd 0/1] Makefile: Use CPPFLAGS from the environment
2014-01-06 19:36 ` Seth Forshee
@ 2014-01-06 19:54 ` Steven Rostedt
2014-01-06 20:00 ` Steven Rostedt
0 siblings, 1 reply; 7+ messages in thread
From: Steven Rostedt @ 2014-01-06 19:54 UTC (permalink / raw)
To: Seth Forshee; +Cc: linux-kernel
On Mon, 6 Jan 2014 13:36:52 -0600
Seth Forshee <seth.forshee@canonical.com> wrote:
> There is something odd about the updates you pushed though. You've now
> got a version 2.2.1 on your trace-cmd-stable-v2.2 branch, which used to
> be tagged trace-cmd-v2.2.1, and another 2.2.1 on master which now has
> that tag. I'm guessing that's not what you intended to do?
Yeah, I screwed up.
This should have been 2.3 and I screwed up the tags here :-/
I'll try to fix things up.
-- Steve
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH trace-cmd 0/1] Makefile: Use CPPFLAGS from the environment
2014-01-06 19:54 ` Steven Rostedt
@ 2014-01-06 20:00 ` Steven Rostedt
2014-01-06 20:08 ` Seth Forshee
0 siblings, 1 reply; 7+ messages in thread
From: Steven Rostedt @ 2014-01-06 20:00 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Seth Forshee, linux-kernel
On Mon, 6 Jan 2014 14:54:50 -0500
Steven Rostedt <rostedt@goodmis.org> wrote:
>
> Yeah, I screwed up.
>
> This should have been 2.3 and I screwed up the tags here :-/
>
> I'll try to fix things up.
>
I blame too much eggnog over the holiday break. I think I fixed things
up.
Thanks!
-- Steve
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH trace-cmd 0/1] Makefile: Use CPPFLAGS from the environment
2014-01-06 20:00 ` Steven Rostedt
@ 2014-01-06 20:08 ` Seth Forshee
0 siblings, 0 replies; 7+ messages in thread
From: Seth Forshee @ 2014-01-06 20:08 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-kernel
On Mon, Jan 06, 2014 at 03:00:44PM -0500, Steven Rostedt wrote:
> On Mon, 6 Jan 2014 14:54:50 -0500
> Steven Rostedt <rostedt@goodmis.org> wrote:
> >
> > Yeah, I screwed up.
> >
> > This should have been 2.3 and I screwed up the tags here :-/
> >
> > I'll try to fix things up.
> >
>
> I blame too much eggnog over the holiday break. I think I fixed things
> up.
Looks right to me now. Thanks!
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-01-06 20:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-06 17:56 [PATCH trace-cmd 0/1] Makefile: Use CPPFLAGS from the environment Seth Forshee
2014-01-06 17:56 ` [PATCH trace-cmd 1/1] " Seth Forshee
2014-01-06 19:07 ` [PATCH trace-cmd 0/1] " Steven Rostedt
2014-01-06 19:36 ` Seth Forshee
2014-01-06 19:54 ` Steven Rostedt
2014-01-06 20:00 ` Steven Rostedt
2014-01-06 20:08 ` Seth Forshee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox