app_python3: Makefile - get all ldflags for linking
authorDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 6 Aug 2019 15:33:15 +0000 (17:33 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 6 Aug 2019 15:33:41 +0000 (17:33 +0200)
src/modules/app_python3/Makefile

index b8e65cb..1c9ff1c 100644 (file)
@@ -16,7 +16,7 @@ PYTHON3_LIBDIR=${shell ${PYTHON3} -c "import distutils.sysconfig;print(distutils
 PYTHON3_LDFLAGS=${shell ${PYTHON3} -c "import distutils.sysconfig;print(distutils.sysconfig.get_config_var('LINKFORSHARED'))"}
 PYTHON3_INCDIR=${shell ${PYTHON3} -c "import distutils.sysconfig;print(distutils.sysconfig.get_python_inc())"}
 
-LIBS=${shell ${PYTHON3}-config --libs}
+LIBS=${shell ${PYTHON3}-config --ldflags}
 
 ifeq ($(OS), freebsd)
 LIBS+=-pthread