diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-12-17 14:46:18 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-12-17 14:46:18 -0500 |
commit | 9333e51818b302c5510a1ce2c3c0c03874fcc1da (patch) | |
tree | 9e1eae79a97dbeedc47b84dcc9bce346f3ff6aca | |
parent | 7e35a291ee133e918078362c15de62ccdb8087c4 (diff) |
trace-cmd: Use python-config script
Need to use the python-config script instead of having hard coded
includes.
Reported-by: Darren Hart <dvhltc@us.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -87,7 +87,7 @@ plugin_mac80211.so: plugin_mac80211.o | |||
87 | .PHONY: python | 87 | .PHONY: python |
88 | python: $(TCMD_LIB_OBJS) trace-cmd.o trace-read.o | 88 | python: $(TCMD_LIB_OBJS) trace-cmd.o trace-read.o |
89 | swig -Wall -python -noproxy ctracecmd.i | 89 | swig -Wall -python -noproxy ctracecmd.i |
90 | gcc -fpic -c -I/usr/include/python2.6/ -I/usr/lib/python2.6/config ctracecmd_wrap.c | 90 | gcc -fpic -c `python-config --includes` ctracecmd_wrap.c |
91 | $(CC) --shared $^ ctracecmd_wrap.o -o ctracecmd.so | 91 | $(CC) --shared $^ ctracecmd_wrap.o -o ctracecmd.so |
92 | 92 | ||
93 | 93 | ||