--- ./configure.orig 2006-03-11 03:46:52.000000000 +0000 +++ ./configure 2014-08-02 22:49:33.000000000 +0000 @@ -3013,7 +3013,7 @@ echo $ECHO_N "checking linker flags used to link Python... $ECHO_C" >&6 PyLFS=`grep "^LINKFORSHARED=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` -PyLDFLAGS=`grep "^LDFLAGS=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` +PyLDFLAGS=`grep "^LDFLAGS=" ${PyLIBPL}/Makefile | sed 's,^LDFLAGS=,,' | tr '\011\012\015' ' '` LDFLAGS="${LDFLAGS} ${PyLFS} ${PyLDFLAGS}" LDFLAGS="${LDFLAGS} ${PY_LDFLAGS}" echo "$as_me:$LINENO: result: $PY_LDFLAGS" >&5