summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2020-10-30 03:12:41 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2020-10-30 03:12:41 +0000
commitfb758de3ad57c9a518495a19f37f3b5be7a59d7e (patch)
treef93c1c55a401553ca2be1f02c9c7580afc6d6a41 /regress/lib
parentf398d310db00d0a528be8ff2601bf38e6b3acea1 (diff)
botan2 uses C++11, so use ports-gcc on gcc-archs
This makes this interop test pass on sparc64.
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libssl/interop/botan/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/regress/lib/libssl/interop/botan/Makefile b/regress/lib/libssl/interop/botan/Makefile
index cc8016cafba..7d5435f9d25 100644
--- a/regress/lib/libssl/interop/botan/Makefile
+++ b/regress/lib/libssl/interop/botan/Makefile
@@ -1,11 +1,22 @@
-# $OpenBSD: Makefile,v 1.2 2020/10/29 06:05:12 tb Exp $
+# $OpenBSD: Makefile,v 1.3 2020/10/30 03:12:40 tb Exp $
+
+.include <bsd.own.mk>
.if ! exists(/usr/local/bin/botan)
regress:
# install botan2 from ports for interop tests
@echo SKIPPED
+.elif (${COMPILER_VERSION:L} != "clang" && ! exists(/usr/local/bin/eg++))
+regress:
+ # on gcc-archs install g++ from ports for botan2 interop tests
+ @echo SKIPPED
.else
+# C++11
+.if ${COMPILER_VERSION:L} != "clang" && ${CXX} == "c++"
+CXX = /usr/local/bin/eg++
+.endif
+
LIBRARIES = libressl
.if exists(/usr/local/bin/eopenssl)
LIBRARIES += openssl