Changeset 62e51f in git for m4


Ignore:
Timestamp:
Aug 29, 2013, 11:21:02 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
c43ab090c8ddfd806239f1a22762fa741b0864e7d51d87d0caa9eca085b3c3b0f09205679669ddf1
Parents:
b7f0f6186eab1c696b147ac57fcbd516815f9824
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-08-29 23:21:02+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-08-30 00:24:51+02:00
Message:
Python-related changes / OSX

add: Additional PYTHON flags
fix: Working around wrong python's 'LINKFORSHARED' on OSX
File:
1 edited

Legend:

Unmodified
Added
Removed
  • m4/ax_python_devel.m4

    rb7f0f6 r62e51f  
    271271        AC_MSG_RESULT([$PYTHON_EXTRA_LIBS])
    272272        AC_SUBST(PYTHON_EXTRA_LIBS)
    273 
    274         #
    275         # linking flags needed when embedding
     273       
     274        #
     275        # linking flags needed when embedding: LINKFORSHARED is buggy  on OSX  see http://bugs.python.org/issue3588 and  http://stackoverflow.com/questions/6490513/vim-failing-to-compile-with-python-on-os-x
    276276        #
    277277        AC_MSG_CHECKING(python extra linking flags)
    278278        if test -z "$PYTHON_EXTRA_LDFLAGS"; then
    279                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
    280                         conf = distutils.sysconfig.get_config_var; \
    281                         print (conf('LINKFORSHARED'))"`
     279                PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig;conf=distutils.sysconfig.get_config_var; l=conf('LINKFORSHARED'); \
     280print(l if l!='-u _PyMac_Error Python.framework/Versions/2.7/Python' else '-u _PyMac_Error -framework Python -F'+conf('PYTHONFRAMEWORKPREFIX') );"`
    282281        fi
    283282        AC_MSG_RESULT([$PYTHON_EXTRA_LDFLAGS])
Note: See TracChangeset for help on using the changeset viewer.