Am 30.09.2011 um 10:53 schrieb Jean-Marc Lasgouttes: > Le 30/09/2011 07:50, Stephan Witt a écrit : >>> I was about to ask what this appkit was for. What code uses it? >> >> LinkBackServer, AutoOpen, AppleSpell, ... >> E.g. it helps resolving symbols like _LSOpenFromRefSpec from the >> ApplicationServices >> framework and to resolve many objc references like _objc_msgSend (because it >> adds >> the dependency of the FoundationKit and /usr/lib/libobjc.dylib ?). > > It is strange that I do not see it needed.
Oh, now I understand it. My bad. Sorry for the confusion! I've reverted your patch in one checkout to test for the error and confused the checkouts one day later. :( But the lesson I've learned by that: in fact it is the AppKit framework what's needed. And this is loaded at link time by referencing the Carbon framework. Does this make sense? This leads to the following patch which I like more (if it works for you too): Index: src/Makefile.am =================================================================== --- src/Makefile.am (Revision 39787) +++ src/Makefile.am (Arbeitskopie) @@ -40,7 +40,7 @@ endif if INSTALL_MACOSX -lyx_LDFLAGS = -framework Carbon -framework Cocoa +lyx_LDFLAGS = -framework AppKit endif #lyx_LDFLAGS=-Wl,-O1 Index: src/client/Makefile.am =================================================================== --- src/client/Makefile.am (Revision 39787) +++ src/client/Makefile.am (Arbeitskopie) @@ -16,7 +16,7 @@ $(QT4_LIB) $(QT4_LDFLAGS) $(LIBSHLWAPI) $(LIBPSAPI) if INSTALL_MACOSX -lyxclient_LDFLAGS = -framework Carbon +lyxclient_LDFLAGS = -framework AppKit endif # everything below the line containing the single backslashs Index: src/tex2lyx/Makefile.am =================================================================== --- src/tex2lyx/Makefile.am (Revision 39787) +++ src/tex2lyx/Makefile.am (Arbeitskopie) @@ -69,5 +69,5 @@ @LIBS@ $(LIBSHLWAPI) $(LIBPSAPI) if INSTALL_MACOSX -tex2lyx_LDFLAGS = -framework Carbon +tex2lyx_LDFLAGS = -framework AppKit endif