diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-05-09 08:28:53 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-05-09 08:28:53 (GMT) |
commit | e2be83def891db39fd4b7b707247740bd28cd811 (patch) | |
tree | d13ef17339ecba456175c093d1a70bb9ded07121 /configure.in | |
parent | 809e22543f8bafd2df66fbe116ad49bbca5793f3 (diff) | |
download | cpython-e2be83def891db39fd4b7b707247740bd28cd811.zip cpython-e2be83def891db39fd4b7b707247740bd28cd811.tar.gz cpython-e2be83def891db39fd4b7b707247740bd28cd811.tar.bz2 |
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 1491417..d2c41a9 100644 --- a/configure.in +++ b/configure.in @@ -647,6 +647,25 @@ then fi AC_MSG_RESULT($LINKCC) +# GNULD is set to "yes" if the GNU linker is used. If this goes wrong +# make sure we default having it set to "no": this is used by +# distutils.unixccompiler to know if it should add --enable-new-dtags +# to linker command lines, and failing to detect GNU ld simply results +# in the same bahaviour as before. +AC_SUBST(GNULD) +AC_MSG_CHECKING(for GNU ld) +ac_prog=ld +if test "$GCC" = yes; then + ac_prog=`$CC -print-prog-name=ld` +fi +case `"$ac_prog" -V 2>&1 < /dev/null` in + *GNU*) + GNULD=yes;; + *) + GNULD=no;; +esac +AC_MSG_RESULT($GNULD) + AC_MSG_CHECKING(for --enable-shared) AC_ARG_ENABLE(shared, AC_HELP_STRING(--enable-shared, disable/enable building shared python library)) |