chiark / gitweb /
configure.ac, vars.am: Use host-specific link options for test programs.
[catacomb] / vars.am
diff --git a/vars.am b/vars.am
index b99cfcfe9e243ecacdc62ea300ed7ffa7d195af6..223f2bab98753badf7c4a10482d28aa12020930a 100644 (file)
--- a/vars.am
+++ b/vars.am
@@ -120,12 +120,14 @@ SUFFIXES          += .c .t$(EXEEXT) .to
 .c.to:
        $(AM_V_CC)$(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" $< -o $@
 .to.t$(EXEEXT):
-       $(AM_V_CCLD)$(LINK) $< $(TEST_LIBS) $(top_builddir)/libcatacomb.la \
+       $(AM_V_CCLD)$(LINK) $(TEST_LDFLAGS) $< \
+               $(TEST_LIBS) $(top_builddir)/libcatacomb.la \
                $(mLib_LIBS) $(CATACOMB_LIBS) $(LIBS)
 %.to: %.c %.lo
        $(AM_V_CC)$(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" $< -o $@
 %.t$(EXEEXT): %.to $(TEST_LIBS) $(top_builddir)/libcatacomb.la
-       $(AM_V_CCLD)$(LINK) $+ $(mLib_LIBS) $(CATACOMB_LIBS) $(LIBS)
+       $(AM_V_CCLD)$(LINK) $(TEST_LDFLAGS) $+ \
+               $(mLib_LIBS) $(CATACOMB_LIBS) $(LIBS)
 
 .PRECIOUS: %.to %.t$(EXEEXT)
 CLEANFILES             += *.to *.t$(EXEEXT)