]> granicus.if.org Git - python/commitdiff
This checkin adds a symlink to the lib directory of a framework install
authorRonald Oussoren <ronaldoussoren@mac.com>
Mon, 8 Jun 2009 20:54:59 +0000 (20:54 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Mon, 8 Jun 2009 20:54:59 +0000 (20:54 +0000)
of Python (on OSX), and the end result of that is that the combination of
``python-config --ldflags`` and ``python-config --libs`` refers to an actually
existing location.

I've done this in preference to changing python-config to specify
'-framework Python' for linking because that doesn't work when you have multiple
versions of python installed (because '-framework Python' will always link to
the 'Current' version of the framework, without a possibility to specify a
specific version).

Makefile.pre.in

index b59c346131ffa956fd7cf85a13ce71448642e0b8..7e99da065db4085e95c601de02fa007bc55288c9 100644 (file)
@@ -1068,6 +1068,7 @@ frameworkinstallstructure:        $(LDLIBRARY)
 # install (which includes python-config) happy.
 frameworkinstallmaclib:
        ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config/libpython$(VERSION).a"
+       ln -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(VERSION).dylib"
        cd Mac && $(MAKE) installmacsubtree DESTDIR="$(DESTDIR)"
 
 # This installs the IDE, the Launcher and other apps into /Applications