mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 07:44:29 +02:00
Skip building sk-dummy library if no SK support.
This commit is contained in:
parent
102d106bc2
commit
08ce6b2210
@ -635,6 +635,8 @@ SK_DUMMY_OBJS=\
|
|||||||
regress/misc/sk-dummy/fatal.lo \
|
regress/misc/sk-dummy/fatal.lo \
|
||||||
ed25519.lo hash.lo ge25519.lo fe25519.lo sc25519.lo verify.lo
|
ed25519.lo hash.lo ge25519.lo fe25519.lo sc25519.lo verify.lo
|
||||||
|
|
||||||
|
SK_DUMMY_LIBRARY=@SK_DUMMY_LIBRARY@
|
||||||
|
|
||||||
.c.lo: Makefile.in config.h
|
.c.lo: Makefile.in config.h
|
||||||
$(CC) $(CFLAGS_NOPIE) $(PICFLAG) $(CPPFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS_NOPIE) $(PICFLAG) $(CPPFLAGS) -c $< -o $@
|
||||||
|
|
||||||
@ -648,7 +650,7 @@ regress-binaries: regress-prep $(LIBCOMPAT) \
|
|||||||
regress/netcat$(EXEEXT) \
|
regress/netcat$(EXEEXT) \
|
||||||
regress/check-perm$(EXEEXT) \
|
regress/check-perm$(EXEEXT) \
|
||||||
regress/mkdtemp$(EXEEXT) \
|
regress/mkdtemp$(EXEEXT) \
|
||||||
regress/misc/sk-dummy/sk-dummy.so
|
$(SK_DUMMY_LIBRARY)
|
||||||
|
|
||||||
regress-unit-binaries: regress-prep $(REGRESSLIBS) \
|
regress-unit-binaries: regress-prep $(REGRESSLIBS) \
|
||||||
regress/unittests/sshbuf/test_sshbuf$(EXEEXT) \
|
regress/unittests/sshbuf/test_sshbuf$(EXEEXT) \
|
||||||
|
@ -3137,6 +3137,10 @@ AC_MSG_RESULT([$enable_pkcs11])
|
|||||||
AC_MSG_CHECKING([whether to enable U2F])
|
AC_MSG_CHECKING([whether to enable U2F])
|
||||||
if test "x$enable_sk" = "xyes" ; then
|
if test "x$enable_sk" = "xyes" ; then
|
||||||
AC_DEFINE([ENABLE_SK], [], [Enable for U2F/FIDO support])
|
AC_DEFINE([ENABLE_SK], [], [Enable for U2F/FIDO support])
|
||||||
|
AC_SUBST(SK_DUMMY_LIBRARY, [regress/misc/sk-dummy/sk-dummy.so])
|
||||||
|
else
|
||||||
|
# Do not try to build sk-dummy library.
|
||||||
|
AC_SUBST(SK_DUMMY_LIBRARY, [""])
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT([$enable_sk])
|
AC_MSG_RESULT([$enable_sk])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user