From d163b8c30c88a66a25bd66ca94cad78d3f387403 Mon Sep 17 00:00:00 2001 From: Brendan Fabeny Date: Sat, 5 Mar 2011 00:39:33 +0000 Subject: Tell ports that USE_PYDISTUTILS to link shared objects with the same compiler used to build them. While here, fix a typo. PR: 154742 Approved by: miwi --- Mk/bsd.python.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Mk/bsd.python.mk') diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk index 0852895863ff..fb27759e880e 100644 --- a/Mk/bsd.python.mk +++ b/Mk/bsd.python.mk @@ -516,7 +516,7 @@ PLIST_FILES+= ${PYDISTUTILS_EGGINFODIR:S;${PREFIX}/;;}/${egg} . endfor .endif -# Fix for programs that build python from a GNU auto* enviornment +# Fix for programs that build python from a GNU auto* environment CONFIGURE_ENV+= PYTHON="${PYTHON_CMD}" # Zope-related variables @@ -678,6 +678,9 @@ PYDISTUTILS_BUILD_TARGET?= build PYDISTUTILS_INSTALL_TARGET?= install .if defined(USE_PYDISTUTILS) +LDSHARED?= ${CC} -shared +MAKE_ENV+= LDSHARED="${LDSHARED}" + .if !target(do-configure) && !defined(HAS_CONFIGURE) && !defined(GNU_CONFIGURE) do-configure: @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} ${PYDISTUTILS_CONFIGURE_TARGET} ${PYDISTUTILS_CONFIGUREARGS}) -- cgit v1.2.3