Hi.  While updating my SlackBuild script for tDOM today to build version 0.9.2 I encountered a link issue with tnc.  I am passing in a link location via LDFLAGS= to configure with a path to the SlackBuild directory where the tdom stubs library was found, but the linker was never receiving the -L incantation.

I traced the problem down to the Makefile.in templates omitting a LDFLAGS = @LDFLAGS@ stanza.  Adding that stanza to all of the Makefile.in templates provided a proper build and Slackware install package from the process.

I have a patch file, but I don't see any way to "attach a file" so I'll just copy/paste the contents below, hopefully the patch will survive the process (although the patch is trivial in any case).

diff -u -r tdom-0.9.2-src.orig/Makefile.in tdom-0.9.2-src/Makefile.in
--- tdom-0.9.2-src.orig/Makefile.in	2020-08-27 12:32:27.000000000 -0400
+++ tdom-0.9.2-src/Makefile.in	2021-05-29 12:22:49.377664267 -0400
@@ -180,6 +180,7 @@
 LIBS		= @PKG_LIBS@ @LIBS@
 AR		= @AR@
 CFLAGS		= @CFLAGS@
+LDFLAGS		= @LDFLAGS@
 COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)

 GDB		= gdb
diff -u -r
--- 2020-08-27 12:32:27.000000000 -0400
+++ 2021-05-29 12:22:48.225694702 -0400
@@ -165,6 +165,7 @@
 LIBS		= @PKG_LIBS@ @LIBS@
 AR		= @AR@
 CFLAGS		= @CFLAGS@
+LDFLAGS		= @LDFLAGS@
 COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)

 .SUFFIXES: .c .$(OBJEXT)
diff -u -r
--- 2020-08-27 12:32:27.000000000 -0400
+++ 2021-05-29 12:22:47.649709919 -0400
@@ -165,6 +165,7 @@
 LIBS		= @PKG_LIBS@ @LIBS@
 AR		= @AR@
 CFLAGS		= @CFLAGS@
+LDFLAGS		= @LDFLAGS@
 COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)

 .SUFFIXES: .c .$(OBJEXT)
diff -u -r
--- 2020-08-27 12:32:27.000000000 -0400
+++ 2021-05-29 12:22:46.985727462 -0400
@@ -116,6 +116,7 @@
 AR		= ar

 CFLAGS		= @CFLAGS@
+LDFLAGS		= @LDFLAGS@
 COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)

 #========================================================================
diff -u -r
--- 2020-08-27 12:32:27.000000000 -0400
+++ 2021-05-29 12:22:48.817679062 -0400
@@ -165,6 +165,7 @@
 LIBS		= @PKG_LIBS@ @LIBS@
 AR		= @AR@
 CFLAGS		= @CFLAGS@
+LDFLAGS		= @LDFLAGS@
 COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)

 .SUFFIXES: .c .$(OBJEXT)