Lines 1-11
Link Here
|
1 |
--- configure.orig Sat Aug 5 09:51:23 2006 |
1 |
--- ./configure.orig 2006-03-11 03:46:52.000000000 +0000 |
2 |
+++ configure Sat Aug 5 09:57:47 2006 |
2 |
+++ ./configure 2014-08-02 22:49:33.000000000 +0000 |
3 |
@@ -2899,7 +2899,7 @@ |
3 |
@@ -3013,7 +3013,7 @@ |
4 |
PyLIBP=${PY_STD_LIB} |
4 |
echo $ECHO_N "checking linker flags used to link Python... $ECHO_C" >&6 |
5 |
PyLIBPL=${PyLIBP}/config |
5 |
|
6 |
PyPYTHONLIBS=${PyLIBPL}/libpython${PyVERSION}.a |
6 |
PyLFS=`grep "^LINKFORSHARED=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` |
7 |
-PyLIBS=`grep "^LIB[SMC]=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` |
7 |
-PyLDFLAGS=`grep "^LDFLAGS=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` |
8 |
+PyLIBS=`ldd $PYTHON_BIN | sed -n 's,^.* => [^ ]*/lib\(.*\)\.so[^ ]* \((.*)\),-l\1,p' | grep -v '^-lc$' | xargs echo` |
8 |
+PyLDFLAGS=`grep "^LDFLAGS=" ${PyLIBPL}/Makefile | sed 's,^LDFLAGS=,,' | tr '\011\012\015' ' '` |
9 |
PyMODLIBS=`grep "^LOCALMODLIBS=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` |
9 |
LDFLAGS="${LDFLAGS} ${PyLFS} ${PyLDFLAGS}" |
10 |
PyFRAMEWORK=`grep "^PYTHONFRAMEWORK=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` |
10 |
LDFLAGS="${LDFLAGS} ${PY_LDFLAGS}" |
11 |
PyFRAMEWORKDIR=`grep "^PYTHONFRAMEWORKDIR=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' ' | awk '{print $1}'` |
11 |
echo "$as_me:$LINENO: result: $PY_LDFLAGS" >&5 |
|
|
12 |
|