--- inn-2.6.4/backends/Makefile.orig 2021-05-16 18:32:25.802230175 +0200 +++ inn-2.6.4/backends/Makefile 2021-05-16 18:36:01.467728481 +0200 @@ -81,16 +81,16 @@ @exit 1 actsync: actsync.o $(LIBINN) ; $(LINK) actsync.o $(INNLIBS) -archive: archive.o $(BOTH) ; $(LINKDEPS) archive.o $(STORELIBS) -batcher: batcher.o $(BOTH) ; $(LINKDEPS) batcher.o $(STORELIBS) -cvtbatch: cvtbatch.o $(BOTH) ; $(LINKDEPS) cvtbatch.o $(STORELIBS) +archive: archive.o $(BOTH) ; $(LINKDEPS) archive.o -Wl,-no-as-needed $(STORELIBS) +batcher: batcher.o $(BOTH) ; $(LINKDEPS) batcher.o -Wl,-no-as-needed $(STORELIBS) +cvtbatch: cvtbatch.o $(BOTH) ; $(LINKDEPS) cvtbatch.o -Wl,-no-as-needed $(STORELIBS) innbind: innbind.o $(LIBINN) ; $(LINK) innbind.o $(INNLIBS) -inndf: inndf.o $(BOTH) ; $(LINKDEPS) inndf.o $(STORELIBS) +inndf: inndf.o $(BOTH) ; $(LINKDEPS) inndf.o -Wl,-no-as-needed $(STORELIBS) innxbatch: innxbatch.o $(LIBINN) ; $(LINK) innxbatch.o $(INNLIBS) innxmit: innxmit.o $(BOTH) ; $(LINK) innxmit.o $(STORELIBS) ninpaths: ninpaths.o ; $(LINK) ninpaths.o nntpget: nntpget.o $(BOTH) ; $(LINK) nntpget.o $(STORELIBS) -overchan: overchan.o $(BOTH) ; $(LINKDEPS) overchan.o $(STORELIBS) +overchan: overchan.o $(BOTH) ; $(LINKDEPS) overchan.o -Wl,-no-as-needed $(STORELIBS) shlock: shlock.o $(LIBINN) ; $(LINK) shlock.o $(INNLIBS) shrinkfile: shrinkfile.o $(LIBINN) ; $(LINK) shrinkfile.o $(INNLIBS) --- inn-2.4.3/expire/Makefile.orig 2006-03-20 05:14:57.000000000 +0100 +++ inn-2.4.3/expire/Makefile 2008-02-17 21:05:55.658337911 +0100 @@ -54,7 +54,7 @@ convdate: convdate.o $(LIBINN) ; $(LINK) convdate.o $(INNLIBS) expire: expire.o $(BOTH) ; $(LINK) expire.o $(STORELIBS) expireover: expireover.o $(BOTH) ; $(LINK) expireover.o $(STORELIBS) -fastrm: fastrm.o $(BOTH) ; $(LINK) fastrm.o $(STORELIBS) +fastrm: fastrm.o $(BOTH) ; $(LINK) fastrm.o -Wl,-no-as-needed $(STORELIBS) grephistory: grephistory.o $(BOTH) ; $(LINK) grephistory.o $(STORELIBS) makedbz: makedbz.o $(LIBINN) ; $(LINK) makedbz.o $(INNLIBS) makehistory: makehistory.o $(BOTH) ; $(LINK) makehistory.o $(STORELIBS) --- inn-2.6.4/frontends/Makefile.orig 2021-05-16 18:38:55.630118296 +0200 +++ inn-2.6.4/frontends/Makefile 2021-05-16 18:39:40.139877166 +0200 @@ -81,16 +81,16 @@ inews: inews.o $(LIBINN) ; $(LINK) inews.o $(INNLIBS) innconfval: innconfval.o $(LIBINN) ; $(LINK) innconfval.o $(INNLIBS) ovdb_init: ovdb_init.o $(BOTH) - $(LINKDEPS) ovdb_init.o $(STORELIBS) + $(LINKDEPS) ovdb_init.o -Wl,-no-as-needed $(STORELIBS) ovdb_monitor: ovdb_monitor.o $(BOTH) - $(LINKDEPS) ovdb_monitor.o $(STORELIBS) + $(LINKDEPS) ovdb_monitor.o -Wl,-no-as-needed $(STORELIBS) ovdb_server: ovdb_server.o $(BOTH) - $(LINKDEPS) ovdb_server.o $(STORELIBS) + $(LINKDEPS) ovdb_server.o -Wl,-no-as-needed $(STORELIBS) ovdb_stat: ovdb_stat.o $(BOTH) - $(LINKDEPS) ovdb_stat.o $(STORELIBS) -rnews: rnews.o $(BOTH) ; $(LINK) rnews.o $(STORELIBS) + $(LINKDEPS) ovdb_stat.o -Wl,-no-as-needed $(STORELIBS) +rnews: rnews.o $(BOTH) ; $(LINK) rnews.o -Wl,-no-as-needed $(STORELIBS) sm: sm.o $(BOTH) - $(LINKDEPS) sm.o $(STORELIBS) + $(LINKDEPS) sm.o -Wl,-no-as-needed $(STORELIBS) ovdb_init.o: ovdb_init.c $(CC) $(CFLAGS) $(BDB_CPPFLAGS) -c $< --- inn-2.6.3/innfeed/Makefile.orig 2019-02-07 16:02:22.000000000 +0100 +++ inn-2.6.3/innfeed/Makefile 2020-11-07 18:35:27.924853080 +0100 @@ -49,7 +49,7 @@ ## Compilation rules. -INNFEEDLIBS = $(LIBSTORAGE) $(LIBHIST) $(LIBINN) $(STORAGE_LIBS) $(LIBS) +INNFEEDLIBS = -Wl,-no-as-needed $(LIBSTORAGE) $(LIBHIST) $(LIBINN) $(STORAGE_LIBS) $(LIBS) config_y.c config_y.h: configfile.y $(YACC) -d configfile.y --- inn-2.7.0/storage/buffindexed/ovmethod.mk.orig 2022-10-10 21:10:50.399143848 +0200 +++ inn-2.7.0/storage/buffindexed/ovmethod.mk 2022-10-10 21:11:54.148798486 +0200 @@ -5,4 +5,4 @@ buffindexed/buffindexed_d.$(EXTOBJ): buf buffindexed/buffindexed_d: buffindexed/buffindexed_d.$(EXTOBJ) libinnstorage.$(EXTLIB) $(LIBHIST) $(LIBLDDEPS) $(LDFLAGS) -o $@ buffindexed/buffindexed_d.$(EXTOBJ) \ - $(LIBSTORAGE) $(LIBHIST) $(LIBINN) $(STORAGE_LIBS) $(LIBS) + -Wl,-no-as-needed $(LIBSTORAGE) $(LIBHIST) $(LIBINN) $(STORAGE_LIBS) $(LIBS)