lyx_mirror/src/convert/Makefile.am
Stephan Witt b090327dec 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)
2018-09-22 20:33:41 +02:00

34 lines
585 B
Makefile

include $(top_srcdir)/config/common.am
#man_MANS = lyxconvert.1
DEFAULT_INCLUDES =
if INSTALL_MACOSX
bin_PROGRAMS = lyxconvert
AM_CPPFLAGS += -I$(top_srcdir)/src/convert \
$(QT_CPPFLAGS) \
-DQT_NO_CAST_TO_ASCII \
-DQT_NO_STL \
$(QT_INCLUDES)
lyxconvert_SOURCES = \
lyxconvert.cpp
lyxconvert_LDADD = \
$(QT_LIB) $(QT_LDFLAGS) \
$(ICONV_LIBS) $(ZLIB_LIBS) $(LIBSHLWAPI) $(LIBPSAPI)
lyxconvert_LDFLAGS = -framework AppKit \
-Wl,-rpath,@loader_path/../Frameworks \
-Wl,-rpath,@executable_path/../Frameworks \
-Wl,-headerpad_max_install_names
else
bin_PROGRAMS =
endif