[PATCH] libwine: Fix resetting the install_name on Mac OS.
Charles Davis
cdavis at mymail.mines.edu
Mon Oct 3 13:16:39 CDT 2011
The manpage for install_name_tool(1) explains that resetting the
install_name can fail if there is not enough room in the field. By
default, ld(1) only puts in enough space to hold whatever install_name
it was given (or the default name, if none was given). Passing
the -headerpad_max_install_names option to ld(1), however, fixes this.
---
libs/wine/Makefile.in | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in
index fe33595..1aeb16a 100644
--- a/libs/wine/Makefile.in
+++ b/libs/wine/Makefile.in
@@ -128,7 +128,8 @@ libwine.a: wine.def
libwine.dll: $(OBJS) wine.def Makefile.in
$(DLLWRAP) --def $(srcdir)/wine.def -o $@ $(OBJS) $(EXTRALIBS)
-DYLIB_LDFLAGS = -compatibility_version $(SOVERSION) -current_version $(VERSION)
+DYLIB_LDFLAGS = -compatibility_version $(SOVERSION) -current_version $(VERSION) \
+ -headerpad_max_install_names
libwine.$(VERSION).dylib: $(OBJS) $(RELPATH) Makefile.in
$(LDSHARED) -install_name $(libdir)/$(DYNAME) $(DYLIB_LDFLAGS) $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@
--
1.7.7
More information about the wine-patches
mailing list