summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2022-11-03 23:04:08 +1100
committerDarren Tucker <dtucker@dtucker.net>2022-11-03 23:04:08 +1100
commit3500f0405a3ab16b59a26f3508c4257a3fc3bce6 (patch)
tree94f365f89d2217ccc7f960e3097b2378cea80479 /openbsd-compat
parentec59effcf65b8a4c85d47ff5a271123259dd0ab8 (diff)
downloadopenssh-git-3500f0405a3ab16b59a26f3508c4257a3fc3bce6.tar.gz
Link libssh into compat tests.
The cygwin compat code uses xmalloc, so add libssh.a so pick up that.
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/regress/Makefile.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsd-compat/regress/Makefile.in b/openbsd-compat/regress/Makefile.in
index f9946bcf..6fabca84 100644
--- a/openbsd-compat/regress/Makefile.in
+++ b/openbsd-compat/regress/Makefile.in
@@ -10,6 +10,7 @@ CFLAGS=@CFLAGS@
CPPFLAGS=-I. -I.. -I../.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../.. @CPPFLAGS@ @DEFS@
EXEEXT=@EXEEXT@
LIBCOMPAT=../libopenbsd-compat.a
+LIBSSH=../../libssh.a
LIBS=@LIBS@ @CHANNELLIBS@
LDFLAGS=@LDFLAGS@ $(LIBCOMPAT)
@@ -18,8 +19,8 @@ TESTPROGS=closefromtest$(EXEEXT) snprintftest$(EXEEXT) strduptest$(EXEEXT) \
all: t-exec ${OTHERTESTS}
-.c: $(LIBCOMPAT)
- $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LIBCOMPAT) $(LIBS)
+.c: $(LIBCOMPAT) $(LIBSSH)
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LIBCOMPAT) $(LIBSSH) $(LIBS)
t-exec: $(TESTPROGS)
@echo running compat regress tests