Distro build systems expect all objects to be built with the flags they supply, and may complain when they are not.
Signed-off-by: Seth Forshee <seth.fors...@canonical.com> --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2423038..1d613c4 100644 --- a/Makefile +++ b/Makefile @@ -569,13 +569,13 @@ PYGTK_CFLAGS = `pkg-config --cflags pygtk-2.0` ctracecmd.so: $(TCMD_LIB_OBJS) ctracecmd.i swig -Wall -python -noproxy ctracecmd.i - $(CC) -fpic -c $(PYTHON_INCLUDES) ctracecmd_wrap.c - $(CC) --shared $(TCMD_LIB_OBJS) ctracecmd_wrap.o -o ctracecmd.so + $(CC) -fpic -c $(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) --shared $^ $(LIBS) $(CONFIG_LIBS) ctracecmdgui_wrap.o -o ctracecmdgui.so + $(CC) --shared $^ $(LDFLAGS) $(LIBS) $(CONFIG_LIBS) ctracecmdgui_wrap.o -o ctracecmdgui.so PHONY += python python: $(PYTHON) @@ -594,7 +594,7 @@ do_compile_python_plugin_obj = \ do_python_plugin_build = \ ($(print_plugin_build) \ - $(CC) $< -shared $(PYTHON_LDFLAGS) -o $@) + $(CC) $< -shared $(LDFLAGS) $(PYTHON_LDFLAGS) -o $@) plugin_python.o: %.o : $(src)/%.c trace_python_dir $(Q)$(do_compile_python_plugin_obj) -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/