aboutsummaryrefslogtreecommitdiff
path: root/standalone
diff options
context:
space:
mode:
authorJ08nY2024-08-12 22:41:22 +0200
committerJ08nY2024-08-12 22:41:22 +0200
commite0bc60f3257039e9cfcbaa9312c6e40664989646 (patch)
tree0c819985713b68e612a22d83621dc74fb9d75216 /standalone
parentb170ce52826b8e82c6278de980772ed73cb3ea6e (diff)
downloadECTester-e0bc60f3257039e9cfcbaa9312c6e40664989646.tar.gz
ECTester-e0bc60f3257039e9cfcbaa9312c6e40664989646.tar.zst
ECTester-e0bc60f3257039e9cfcbaa9312c6e40664989646.zip
Diffstat (limited to 'standalone')
-rw-r--r--standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile
index 74d1a93..1393f82 100644
--- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile
+++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/Makefile
@@ -141,13 +141,17 @@ tomcrypt.o: tomcrypt.c
# Botan-2 shim
+BOTAN_NAME := "botan-2"
+ifeq ($(shell pkg-config --exists $(BOTAN_NAME); echo $$?),1)
+ BOTAN_NAME := "botan-3"
+endif
botan: botan_provider.so
botan_provider.so: botan.o cpp_utils.o | cpplibs
- $(CXX) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs botan-2) -Wl,-Bdynamic -l:lib_timing.so -l:lib_cppsignals.so
+ $(CXX) $(LFLAGS) -o $@ -Wl,-rpath,'$$ORIGIN/lib' $^ -L. -Wl,-Bstatic $(shell pkg-config --libs $(BOTAN_NAME)) -Wl,-Bdynamic -l:lib_timing.so -l:lib_cppsignals.so
botan.o: botan.cpp
- $(CXX) $(shell pkg-config --cflags botan-2) $(BOTAN_CXXFLAGS) $(CXXFLAGS) -c $<
+ $(CXX) $(shell pkg-config --cflags $(BOTAN_NAME)) $(BOTAN_CXXFLAGS) $(CXXFLAGS) -c $<
# Crypto++ shim