]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Add $(srcdir) for standalone sk-libfido2 make target.
authorXavier Hsinyuan <me@lstlx.com>
Mon, 9 Dec 2024 03:21:05 +0000 (11:21 +0800)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 12 Dec 2024 09:12:09 +0000 (20:12 +1100)
Fix out-of-tree build failure due to incorrect path for `sk-usbhid.c`.

Makefile.in

index 1f2542ddfde36ae3402c5651e8e334e5d2b3b47a..01f3756a88c99bc51969953ee08f5aff360f1a8a 100644 (file)
@@ -279,8 +279,8 @@ libssh-pic.a: $(LIBSSH_PIC_OBJS)
        $(AR) rv $@ $(LIBSSH_PIC_OBJS)
        $(RANLIB) $@
 
-$(SK_STANDALONE): sk-usbhid.c $(LIBCOMPAT) libssh-pic.a
-       $(CC) -o $@ -shared $(CFLAGS_NOPIE) $(CPPFLAGS) -DSK_STANDALONE $(PICFLAG) sk-usbhid.c \
+$(SK_STANDALONE): $(srcdir)/sk-usbhid.c $(LIBCOMPAT) libssh-pic.a
+       $(CC) -o $@ -shared $(CFLAGS_NOPIE) $(CPPFLAGS) -DSK_STANDALONE $(PICFLAG) $(srcdir)/sk-usbhid.c \
        libssh-pic.a $(LDFLAGS_NOPIE) -lopenbsd-compat $(LIBS) $(LIBFIDO2) $(CHANNELLIBS)
 
 $(MANPAGES): $(MANPAGES_IN)