From b75ad9f950de4eb4b87c950c8cdd60893f82b797 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Wed, 26 May 2021 09:15:09 +0200 Subject: mbedtls: make perl a test dependency (#23897) --- var/spack/repos/builtin/packages/mbedtls/package.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/mbedtls/package.py b/var/spack/repos/builtin/packages/mbedtls/package.py index f5617ac359..bb64199435 100644 --- a/var/spack/repos/builtin/packages/mbedtls/package.py +++ b/var/spack/repos/builtin/packages/mbedtls/package.py @@ -35,10 +35,18 @@ class Mbedtls(CMakePackage): variant('pic', default=False, description='Compile with position independent code.') + variant('shared', default=False, + description='Build shared libraries') depends_on('cmake@3.1.0:', type='build', when='@2.8.0:') depends_on('cmake@2.6:', type='build', when='@:2.7.99') - depends_on('perl', type='build') + depends_on('perl', type='test') + + def cmake_args(self): + return [ + self.define('ENABLE_TESTING', self.run_tests), + self.define_from_variant('USE_SHARED_MBEDTLS_LIBRARY', 'shared') + ] def flag_handler(self, name, flags): -- cgit v1.2.3-70-g09d2