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>
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}" \