Skip to content

Commit 5aec9cc

Browse files
committed
Fix plpython build on older versions of OS X.
Pre-Lion versions of Apple's linker don't allow space between -F and its argument. (Snow Leopard is nice enough to tell you that in so many words, but older versions just fail with very obscure link errors, as seen on buildfarm member locust for instance.) Oversight in commit fc87450.
1 parent 915a29a commit 5aec9cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/python.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.
7373
7474
if test -n "$python_framework"; then
7575
python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
76-
python_libspec="-F $python_frameworkprefix -framework $python_framework"
76+
python_libspec="-F${python_frameworkprefix} -framework $python_framework"
7777
python_enable_shared=1
7878
elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7979
then

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -7451,7 +7451,7 @@ python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.
74517451

74527452
if test -n "$python_framework"; then
74537453
python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
7454-
python_libspec="-F $python_frameworkprefix -framework $python_framework"
7454+
python_libspec="-F${python_frameworkprefix} -framework $python_framework"
74557455
python_enable_shared=1
74567456
elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
74577457
then

0 commit comments

Comments
 (0)