freebsd-ports/www/mod_python33/files/patch-configure
Olli Hauer 487fa667db - move www/mod_python3 -> www/mod_python33
- use DIST_SUBDIR
- adjust devel/viewvc + add OPTION for www/mod_python35
- add entry to UPDATING and MOVED

with hat apache@
2014-04-15 18:46:37 +00:00

11 lines
733 B
Text

--- configure.orig Sat Aug 5 09:51:23 2006
+++ configure Sat Aug 5 09:57:47 2006
@@ -2899,7 +2899,7 @@
PyLIBP=${PY_STD_LIB}
PyLIBPL=${PyLIBP}/config
PyPYTHONLIBS=${PyLIBPL}/libpython${PyVERSION}.a
-PyLIBS=`grep "^LIB[SMC]=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '`
+PyLIBS=`ldd $PYTHON_BIN | sed -n 's,^.* => [^ ]*/lib\(.*\)\.so[^ ]* \((.*)\),-l\1,p' | grep -v '^-lc$' | xargs echo`
PyMODLIBS=`grep "^LOCALMODLIBS=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '`
PyFRAMEWORK=`grep "^PYTHONFRAMEWORK=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '`
PyFRAMEWORKDIR=`grep "^PYTHONFRAMEWORKDIR=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' ' | awk '{print $1}'`