summaryrefslogtreecommitdiff
path: root/security/openssl/patches/patch-Configure
blob: 57ffc4a9be74cf18171f453cec4482c6139f70b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-Configure,v 1.10 2020/07/10 10:04:54 hauke Exp $

OpenSSL mandates that you need to re-create dependencies for
unorthodox combinations of build options. These days, the compiler
will create dependency information. On older platforms (e.g. pre-v9
Darwin) Configure will fall back to makedepend(8), which hasn't kept up
well with compilers' options.

Instead of failing the build on makedepend(8) malfunction, have
make(1) ignore its return value - which used to be the default for
previous OpenSSL versions.

--- Configure.orig	2020-04-21 12:22:39.000000000 +0000
+++ Configure
@@ -1419,7 +1419,7 @@ if (!$disabled{makedepend}) {
     } else {
         # In all other cases, we look for 'makedepend', and disable the
         # capability if not found.
-        $config{makedepprog} = which('makedepend');
+        $config{makedepprog} = '-' . which('makedepend');
         disable('unavailable', 'makedepend') unless $config{makedepprog};
     }
 }