From: Kefu Chai Date: Tue, 12 Apr 2016 04:47:46 +0000 (+0800) Subject: pybind/Makefile.am: fix build with ccache X-Git-Tag: ses3-milestone4~19^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8523%2Fhead;p=ceph.git pybind/Makefile.am: fix build with ccache as a work-around of https://bugs.python.org/issue8027, pass ${CC} and ${LDSHARED} to distutils, so we can still have a working compiling command line even ${CC} is "ccache gcc". Signed-off-by: Kefu Chai --- diff --git a/src/pybind/Makefile.am b/src/pybind/Makefile.am index cfef3aeaf50..9f779dd5f8e 100644 --- a/src/pybind/Makefile.am +++ b/src/pybind/Makefile.am @@ -6,6 +6,9 @@ CYTHON_BUILD_DIR="$(shell readlink -f $(builddir))/build" PY_DISTUTILS = \ mkdir -p $(CYTHON_BUILD_DIR); \ + CC="${CC}" \ + CXX="${CXX}" \ + LDSHARED="${CC} -shared" \ CPPFLAGS="-iquote \${abs_srcdir}/include ${AM_CPPFLAGS} ${CPPFLAGS}" \ CFLAGS="-iquote \${abs_srcdir}/include ${AM_CFLAGS} ${PYTHON_CFLAGS}" \ LDFLAGS="-L\${abs_builddir}/.libs $(subst -pie,,${AM_LDFLAGS}) ${PYTHON_LDFLAGS}" \