build_environment: linux/python, help python find ffi.
authorRay Molenkamp <github@lazydodo.com>
Mon, 17 Sep 2018 19:13:17 +0000 (13:13 -0600)
committerRay Molenkamp <github@lazydodo.com>
Mon, 17 Sep 2018 19:13:17 +0000 (13:13 -0600)
we were building ffi, but python wasn't finding it.

build_files/build_environment/cmake/python.cmake

index c61a0084b6f03ed9abdd5a007e39c64d594dd756..ccef8a825b734df4eba24511a786637814f4ad77 100644 (file)
@@ -89,11 +89,12 @@ else()
 
        set(PYTHON_CONFIGURE_EXTRA_ARGS "--with-openssl=${LIBDIR}/ssl")
        set(PYTHON_CFLAGS "-I${LIBDIR}/sqlite/include -I${LIBDIR}/bzip2/include -I${LIBDIR}/lzma/include -I${LIBDIR}/zlib/include")
-       set(PYTHON_LDFLAGS "-L${LIBDIR}/sqlite/lib -L${LIBDIR}/bzip2/lib -L${LIBDIR}/lzma/lib -L${LIBDIR}/zlib/lib")
+       set(PYTHON_LDFLAGS "-L${LIBDIR}/ffi/lib -L${LIBDIR}/sqlite/lib -L${LIBDIR}/bzip2/lib -L${LIBDIR}/lzma/lib -L${LIBDIR}/zlib/lib")
        set(PYTHON_CONFIGURE_EXTRA_ENV
                export CFLAGS=${PYTHON_CFLAGS} &&
                export CPPFLAGS=${PYTHON_CFLAGS} &&
-               export LDFLAGS=${PYTHON_LDFLAGS})
+               export LDFLAGS=${PYTHON_LDFLAGS} &&
+               export PKG_CONFIG_PATH=${LIBDIR}/ffi/lib/pkgconfig)
        set(PYTHON_PATCH ${PATCH_CMD} --verbose -p1 -d ${BUILD_DIR}/python/src/external_python < ${PATCH_DIR}/python_linux.diff)
 
        ExternalProject_Add(external_python