VMS: pretend to use -znodelete
authorRichard Levitte <levitte@openssl.org>
Sun, 6 Nov 2016 17:35:01 +0000 (18:35 +0100)
committerRichard Levitte <richard@levitte.org>
Sun, 6 Nov 2016 18:51:29 +0000 (19:51 +0100)
VMS only unloads shared libraries at process rundown, so tell the
OpenSSL code so by pretending we linked with -znodelete.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1862)
(cherry picked from commit 1186a2b3d40e33cbf42d4fd3c7cc679f9f6e14f2)

Configurations/10-main.conf

index ffa5d38d4b54be05a80699a55c67e648ab9d8612..99e435d40d542145bce64cb8f64b9334ed3eb518 100644 (file)
@@ -1748,6 +1748,7 @@ sub vms_info {
         cflags           => picker(default => "/STANDARD=(ISOC94,RELAXED)/NOLIST/PREFIX=ALL",
                                    debug   => "/NOOPTIMIZE/DEBUG",
                                    release => "/OPTIMIZE/NODEBUG"),
+        defines          => add("OPENSSL_USE_NODELETE"),
         lflags           => picker(default => "/MAP",
                                    debug   => "/DEBUG/TRACEBACK",
                                    release => "/NODEBUG/NOTRACEBACK"),