Fix linking against non-system zlib on macOS
authorJean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
Tue, 23 Jun 2020 06:37:22 +0000 (02:37 -0400)
committerShane Lontis <shane.lontis@oracle.com>
Sun, 19 Jul 2020 23:26:04 +0000 (09:26 +1000)
This commit ensures the -L/path/to/zlib flag associated with ldflags
property set in "Configurations/00-base-templates.conf" (under "BASE_unix")
is inherited when defining "darwin-common" configuration.

CLA: trivial

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12238)

Configurations/10-main.conf

index 895317dbb66cefe11e0b6f08416464f1b74723ca..fc9f3bbea630078a2bf7b490279d57b6df0eb00a 100644 (file)
@@ -1563,7 +1563,7 @@ my %targets = (
         CFLAGS           => picker(debug   => "-g -O0",
                                    release => "-O3"),
         cppflags         => threads("-D_REENTRANT"),
-        lflags           => "-Wl,-search_paths_first",
+        lflags           => add("-Wl,-search_paths_first"),
         sys_id           => "MACOSX",
         bn_ops           => "BN_LLONG RC4_CHAR",
         thread_scheme    => "pthreads",