diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2012-03-24 02:10:51 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2012-03-24 02:12:37 +0100 |
commit | a7c02ed28a8ff20ada18ba82f97b0d67f604d5d8 (patch) | |
tree | 54408411a60e9803c7fef57731ad9e9ce32ef4ef /pango | |
parent | d59b8013424d057f120681d11874c2ef42e17163 (diff) |
help XCode 2.5 resolve @loader_path/libfoo.dylib
Diffstat (limited to 'pango')
-rw-r--r-- | pango/makefile.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pango/makefile.mk b/pango/makefile.mk index ec18260a905e..2fb2db860288 100644 --- a/pango/makefile.mk +++ b/pango/makefile.mk @@ -53,13 +53,16 @@ TARFILE_MD5=22ad1c8d3fda7e73b0798035f3dd96bc PATCH_FILES=pango-1.28.3.patch -CONFIGURE_LDFLAGS="-L$(SOLARLIBDIR)" +LOADER_PATTERN:=-Wl,-dylib_file,@loader_path/REPLACEME:$(SOLARLIBDIR)/REPLACEME +LOADER_LIBS:=glib-2.0.0 gthread-2.0.0 +EXTRA_LINKFLAGS+=$(foreach,lib,$(LOADER_LIBS) $(subst,REPLACEME,lib$(lib).dylib $(LOADER_PATTERN))) + CONFIGURE_DIR= CONFIGURE_ACTION=$(AUGMENT_LIBRARY_PATH) \ ./configure --prefix=/@.__________________________________________________$(EXTRPATH) --disable-dependency-tracking --disable-doc-cross-references \ CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS) $(EXTRA_CDEFS) -I$(SOLARINCDIR) -I$(SOLARINCDIR)/external -I$(SOLARINCDIR)/external/glib-2.0" \ CXXFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS) $(EXTRA_CDEFS) -I$(SOLARINCDIR) -I$(SOLARINCDIR)/external -I$(SOLARINCDIR)/external/glib-2.0" \ - LDFLAGS="$(CONFIGURE_LDFLAGS)" \ + LDFLAGS="-L$(SOLARLIBDIR) $(EXTRA_LINKFLAGS)" \ CAIRO_CFLAGS="-I$(SOLARINCDIR) -I$(SOLARINCDIR)/cairo" \ CAIRO_LIBS="-lcairo" \ GLIB_CFLAGS="-I$(SOLARINCDIR)/external/glib-2.0" \ |