Fix some issues introduce by too simplified fake lib build.

This commit is contained in:
Milan Broz
2021-06-28 15:23:49 +02:00
parent 057af1e20a
commit c7b0f8fcda
2 changed files with 6 additions and 1 deletions

View File

@@ -40,7 +40,10 @@ TESTS += ssh-plugin-test
ssh-plugin-test: fake_token_path.so
fake_token_path.so:
$(CC) -shared -o fake_token_path.so $(top_srcdir)/tests/fake_token_path.c -DBUILD_DIR=\"$(abs_top_srcdir)/.libs/\"
$(CC) $(CFLAGS) -I $(top_srcdir)/lib -fPIC -shared \
-Wl,--version-script=$(top_srcdir)/lib/libcryptsetup.sym \
-o fake_token_path.so $(top_srcdir)/tests/fake_token_path.c \
-DBUILD_DIR=\"$(abs_top_srcdir)/.libs/\"
endif
EXTRA_DIST = compatimage.img.xz compatv10image.img.xz \

View File

@@ -1,3 +1,5 @@
#include <libcryptsetup.h>
const char *crypt_token_external_path(void)
{
return BUILD_DIR;