Link against Cocoa and/or Carbon for Mac OS X. This is needed for autoOpen and Linkback.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39772 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2011-09-27 07:27:19 +00:00
parent 968ab69e88
commit 9e53e98b05
3 changed files with 12 additions and 0 deletions

View File

@ -39,6 +39,10 @@ if LYX_WIN_RESOURCE
windres -I$(top_builddir) --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
endif
if INSTALL_MACOSX
lyx_LDFLAGS = -framework Carbon -framework Cocoa
endif
#lyx_LDFLAGS=-Wl,-O1
BUILT_SOURCES = $(PCH_FILE)

View File

@ -15,6 +15,10 @@ lyxclient_LDADD = \
$(BOOST_LIBS) $(INTLLIBS) @LIBS@ $(SOCKET_LIBS) \
$(QT4_LIB) $(QT4_LDFLAGS) $(LIBSHLWAPI) $(LIBPSAPI)
if INSTALL_MACOSX
lyxclient_LDFLAGS = -framework Carbon
endif
# everything below the line containing the single backslashs
# an ugly hack and needed because of the
# linking problems described in ../Makefile.am

View File

@ -67,3 +67,7 @@ tex2lyx_LDADD = \
$(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) \
$(QT4_LIB) $(QT4_LDFLAGS) \
@LIBS@ $(LIBSHLWAPI) $(LIBPSAPI)
if INSTALL_MACOSX
tex2lyx_LDFLAGS = -framework Carbon
endif