[PATCH] libwine: Fix linking with non-Apple GCC.

Charles Davis cdavis at mymail.mines.edu
Wed Oct 12 12:49:47 CDT 2011


Believe it or not, some people (like ischou on wine-users) actually use
FSF GCC on Darwin--even though Darwin support in mainline has stagnated for
some time since Apple left to go work on Clang. Mainline GCC doesn't yet
support the -headerpad_max_install_names switch; this patch allows it to
work.
---
 libs/wine/Makefile.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in
index 1ef9ff2..ca93d26 100644
--- a/libs/wine/Makefile.in
+++ b/libs/wine/Makefile.in
@@ -128,7 +128,7 @@ 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) -headerpad_max_install_names
+DYLIB_LDFLAGS = -compatibility_version $(SOVERSION) -current_version $(VERSION) -Wl,-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