libwine: Set install name to an absolute path for the installed library on Mac OS.
This commit is contained in:
parent
9719bcaf5c
commit
79c2e077a1
|
@ -13161,7 +13161,7 @@ fi
|
|||
DLLFLAGS="$DLLFLAGS -fPIC"
|
||||
LDDLLFLAGS="-bundle -multiply_defined suppress"
|
||||
LIBWINE_LDFLAGS="-multiply_defined suppress"
|
||||
LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
|
||||
LDSHARED="\$(CC) -dynamiclib"
|
||||
STRIP="$STRIP -u -r"
|
||||
COREFOUNDATIONLIB="-framework CoreFoundation"
|
||||
|
||||
|
|
|
@ -975,7 +975,7 @@ case $host_os in
|
|||
DLLFLAGS="$DLLFLAGS -fPIC"
|
||||
LDDLLFLAGS="-bundle -multiply_defined suppress"
|
||||
LIBWINE_LDFLAGS="-multiply_defined suppress"
|
||||
LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
|
||||
LDSHARED="\$(CC) -dynamiclib"
|
||||
STRIP="$STRIP -u -r"
|
||||
dnl declare needed frameworks
|
||||
AC_SUBST(COREFOUNDATIONLIB,"-framework CoreFoundation")
|
||||
|
|
|
@ -134,10 +134,10 @@ libwine.dll: $(OBJS) wine.def Makefile.in
|
|||
DYLIB_LDFLAGS = -compatibility_version $(SOVERSION) -current_version $(VERSION)
|
||||
|
||||
libwine.$(VERSION).dylib: $(OBJS) $(RELPATH) Makefile.in
|
||||
$(LDSHARED) $(DYLIB_LDFLAGS) $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@
|
||||
$(LDSHARED) -install_name $(libdir)/$(DYNAME) $(DYLIB_LDFLAGS) $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@
|
||||
|
||||
libwine.$(SOVERSION).dylib: libwine.$(VERSION).dylib
|
||||
$(RM) $@ && $(LN_S) libwine.$(VERSION).dylib $@
|
||||
cp -p libwine.$(VERSION).dylib $@ && install_name_tool -id @executable_path/`$(RELPATH) $(bindir) $(libdir)`/$(DYNAME) $@ || $(RM) $@
|
||||
|
||||
libwine.dylib: libwine.$(SOVERSION).dylib
|
||||
$(RM) $@ && $(LN_S) libwine.$(SOVERSION).dylib $@
|
||||
|
|
Loading…
Reference in New Issue