]> granicus.if.org Git - postgresql/commitdiff
Fix plpython build on older versions of OS X.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Jan 2013 20:49:53 +0000 (15:49 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Jan 2013 20:49:53 +0000 (15:49 -0500)
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
fc8745070a53469a43ecbf999dc5692a36a649cc.

config/python.m4
configure

index af4d8d715b2be59812025e8b36ad2bc9399d17d6..5cb285489b1127c54884cb97363463aa909740b7 100644 (file)
@@ -73,7 +73,7 @@ python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.
 
 if test -n "$python_framework"; then
        python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
-       python_libspec="-F $python_frameworkprefix -framework $python_framework"
+       python_libspec="-F${python_frameworkprefix} -framework $python_framework"
        python_enable_shared=1
 elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
 then
index 09bc0cf2195e408b7ca2b1f61ef66eba02c974c8..ef016329cc2bb9076b739179e905957b34e6aaad 100755 (executable)
--- a/configure
+++ b/configure
@@ -7451,7 +7451,7 @@ python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.
 
 if test -n "$python_framework"; then
        python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
-       python_libspec="-F $python_frameworkprefix -framework $python_framework"
+       python_libspec="-F${python_frameworkprefix} -framework $python_framework"
        python_enable_shared=1
 elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
 then