Add PADLOCK_ASM to dso_defines rather than lib_defines
authorRichard Levitte <levitte@openssl.org>
Wed, 13 Feb 2019 02:58:52 +0000 (03:58 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 27 Feb 2019 10:32:14 +0000 (11:32 +0100)
Since the padlock code is an engine, the assembler is for a module,
not a library link to when building a program...  there's a
distinction.

Fixes #2311

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8220)

Configure

index 83e7e17863daf41d45c23413ae151f3b6d65d022..2765639a3a9b787a962ee6a885a29827d483bb00 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1415,7 +1415,7 @@ unless ($disabled{asm}) {
        push @{$config{lib_defines}}, "X25519_ASM";
     }
     if ($target{padlock_asm_src} ne $table{DEFAULTS}->{padlock_asm_src}) {
-       push @{$config{lib_defines}}, "PADLOCK_ASM";
+       push @{$config{dso_defines}}, "PADLOCK_ASM";
     }
     if ($target{poly1305_asm_src} ne "") {
        push @{$config{lib_defines}}, "POLY1305_ASM";