iup-stack-solus/pdflib/files/0001-shared-links.patch

16 lines
562 B
Diff

diff --git a/tecmake.mak b/tecmake.mak
index 48991a4..83623b6 100755
--- a/tecmake.mak
+++ b/tecmake.mak
@@ -1667,7 +1667,9 @@ dynamic-lib: $(TARGETDIR)/$(TARGETDLIBNAME)
$(TARGETDIR)/$(TARGETDLIBNAME) : $(LUAS) $(OBJS) $(EXTRADEPS)
@echo ''; echo Tecmake: linking $(@F) ...
- $(ECHO)$(LD) $(STDLDFLAGS) -o $@ $(OBJS) $(SLIB) $(LFLAGS)
+ $(ECHO)$(LD) $(STDLDFLAGS) -Wl,-soname,$(@F).7 -o $@.7.0.5 $(OBJS) $(SLIB) $(LFLAGS)
+ @echo ''; ln -sv $(@F).7.0.5 $@.7
+ @echo ''; ln -sv $(@F).7 $@
@echo ''; echo 'Tecmake: Dynamic Library ($@) Done.'; echo ''