Define -install_name for dynamics libraries to prevent usage of
DYLD_LIBRARY_PATH.
This commit is contained in:
parent
a3a19355cd
commit
b46202261b
|
@ -32,7 +32,7 @@ $(LIBNAME).dll: $(OBJS) $(DEFNAME) Makefile.in
|
|||
$(DLLWRAP) --def $(SRCDIR)/$(DEFNAME) -o $@ $(OBJS) $(EXTRALIBS)
|
||||
|
||||
$(LIBNAME).$(SOVERSION).dylib: $(OBJS) Makefile.in
|
||||
$(LDSHARED) $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@
|
||||
$(LDSHARED) -install_name $(libdir)/$(LIBNAME).$(SOVERSION).dylib $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@
|
||||
|
||||
$(LIBNAME).dylib: $(LIBNAME).$(SOVERSION).dylib
|
||||
$(RM) $@ && $(LN_S) $(LIBNAME).$(SOVERSION).dylib $@
|
||||
|
|
Loading…
Reference in New Issue