]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/Makefile.am: fix build with ccache 8523/head
authorKefu Chai <kchai@redhat.com>
Tue, 12 Apr 2016 04:47:46 +0000 (12:47 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 12 Apr 2016 04:47:48 +0000 (12:47 +0800)
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 <kchai@redhat.com>
src/pybind/Makefile.am

index cfef3aeaf50ad14283a02c21453818f540504a64..9f779dd5f8ef47dfc9543b82b0ed39695ee7c8be 100644 (file)
@@ -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}" \