mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Add -headerpad_max_install_names option to linker calls and make run path configuration consistent.
This avoids failures when running install_name_tool on Mac when creating relocatable binaries using the bundled private frameworks.
(cherry picked from commit d9c0807227
)
This commit is contained in:
parent
ebd4e25588
commit
b090327dec
@ -48,7 +48,8 @@ endif
|
||||
if INSTALL_MACOSX
|
||||
lyx_LDFLAGS = -framework AppKit -framework ApplicationServices \
|
||||
-Wl,-rpath,@loader_path/../Frameworks \
|
||||
-Wl,-rpath,@executable_path/../Frameworks
|
||||
-Wl,-rpath,@executable_path/../Frameworks \
|
||||
-Wl,-headerpad_max_install_names
|
||||
endif
|
||||
|
||||
if INSTALL_MACOSX
|
||||
|
@ -17,7 +17,10 @@ lyxclient_LDADD = \
|
||||
$(QT_LIB) $(QT_LDFLAGS) $(LIBSHLWAPI) $(LIBPSAPI)
|
||||
|
||||
if INSTALL_MACOSX
|
||||
lyxclient_LDFLAGS = -framework AppKit
|
||||
lyxclient_LDFLAGS = -framework AppKit \
|
||||
-Wl,-rpath,@loader_path/../Frameworks \
|
||||
-Wl,-rpath,@executable_path/../Frameworks \
|
||||
-Wl,-headerpad_max_install_names
|
||||
endif
|
||||
|
||||
SOURCEFILES = \
|
||||
|
@ -23,7 +23,8 @@ lyxconvert_LDADD = \
|
||||
|
||||
lyxconvert_LDFLAGS = -framework AppKit \
|
||||
-Wl,-rpath,@loader_path/../Frameworks \
|
||||
-Wl,-rpath,@executable_path/../Frameworks
|
||||
-Wl,-rpath,@executable_path/../Frameworks \
|
||||
-Wl,-headerpad_max_install_names
|
||||
|
||||
else
|
||||
|
||||
|
@ -163,7 +163,11 @@ check_PROGRAMS = \
|
||||
check_trivstring
|
||||
|
||||
if INSTALL_MACOSX
|
||||
ADD_FRAMEWORKS = -framework QtCore -framework AppKit -framework ApplicationServices
|
||||
ADD_FRAMEWORKS = \
|
||||
-framework QtCore -framework AppKit -framework ApplicationServices \
|
||||
-Wl,-rpath,@loader_path/../Frameworks \
|
||||
-Wl,-rpath,@executable_path/../Frameworks \
|
||||
-Wl,-headerpad_max_install_names
|
||||
endif
|
||||
|
||||
check_convert_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
|
||||
|
@ -135,7 +135,8 @@ tex2lyx_LDADD = \
|
||||
if INSTALL_MACOSX
|
||||
tex2lyx_LDFLAGS = -framework AppKit \
|
||||
-Wl,-rpath,@loader_path/../Frameworks \
|
||||
-Wl,-rpath,@executable_path/../Frameworks
|
||||
-Wl,-rpath,@executable_path/../Frameworks \
|
||||
-Wl,-headerpad_max_install_names
|
||||
endif
|
||||
|
||||
.PHONY: alltests alltests-recursive updatetests
|
||||
|
Loading…
Reference in New Issue
Block a user