]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Link libssh into compat tests.
authorDarren Tucker <dtucker@dtucker.net>
Thu, 3 Nov 2022 12:04:08 +0000 (23:04 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 3 Nov 2022 12:04:08 +0000 (23:04 +1100)
The cygwin compat code uses xmalloc, so add libssh.a so pick up that.

openbsd-compat/regress/Makefile.in

index f9946bcfb1d5be17674801d5afbc904e55af2862..6fabca849e6625b599e7ef68cc3ea810fc9f4296 100644 (file)
@@ -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