diff mbox series

[2/2] makefile: fix python SyntaxError

Message ID 20190806055950.23842-3-sergey.senozhatsky@gmail.com (mailing list archive)
State Not Applicable
Headers show
Series several build fixes | expand

Commit Message

Sergey Senozhatsky Aug. 6, 2019, 5:59 a.m. UTC
File "<string>", line 1
    import distutils.sysconfig; print distutils.sysconfig.get_config_var('LINKFORSHARED')
                                              ^
SyntaxError: invalid syntax

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index acf99b8..b1264d1 100644
--- a/Makefile
+++ b/Makefile
@@ -499,7 +499,7 @@  clean:
 
 PYTHON_INCLUDES = `python-config --includes`
 PYTHON_LDFLAGS = `python-config --ldflags` \
-		$(shell python -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LINKFORSHARED')")
+		$(shell python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LINKFORSHARED'))")
 PYGTK_CFLAGS = `pkg-config --cflags pygtk-2.0`
 
 ctracecmd.so: $(TCMD_LIB_OBJS) ctracecmd.i