Use the inherited 'bsd-gcc-shared' config on 32-bit x86 BSDs.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 10 Jun 2020 22:19:00 +0000 (15:19 -0700)
committerDmitry Belyavskiy <beldmit@gmail.com>
Fri, 12 Jun 2020 07:30:05 +0000 (10:30 +0300)
BSD-generic32 already uses this for building shared libraries on other
32-bit BSD platforms.  Commit b7efa56 collapsed various *BSD targets
down to the BSD-generic ones and BSD-x86.  At the time only
OpenBSD/i386 used `bsd-shared` while both FreeBSD and NetBSD used
`bsd-gcc-shared`.  In practice, all of the BSDs are using either a
GCC/ld.bfd toolchain or a clang/lld toolchain both of which are
compatible with 'bsd-gcc-shared'.

Retire 'bsd-shared' since this removes the last user.

Fixes #12050.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/12110)

Configurations/10-main.conf
Configurations/shared-info.pl

index 7b5da5c4693956220ea0c82da3804d6dad9cc2b2..a44a74cb32199e4e5f01dba749edb819f1f803b2 100644 (file)
@@ -1004,7 +1004,6 @@ my %targets = (
         CFLAGS           => add(picker(release => "-fomit-frame-pointer")),
         lib_cppflags     => add("-DL_ENDIAN"),
         bn_ops           => "BN_LLONG",
-        shared_target    => "bsd-shared",
         asm_arch         => 'x86',
         perlasm_scheme   => "a.out",
     },
index 424359149388bc4b9c7096c5c94c7d9d1fe36ca2..82e828dc41b6ca11c1284a068f932c586f1ed7c6 100644 (file)
@@ -40,12 +40,6 @@ my %shared_info;
         };
     },
     'bsd-gcc-shared' => sub { return $shared_info{'linux-shared'}; },
-    'bsd-shared' => sub {
-        return $shared_info{'gnu-shared'} if detect_gnu_ld();
-        return {
-            shared_ldflag     => '-shared -nostdlib',
-        };
-    },
     'darwin-shared' => {
         module_ldflags        => '-bundle',
         shared_ldflag         => '-dynamiclib -current_version $(SHLIB_VERSION_NUMBER) -compatibility_version $(SHLIB_VERSION_NUMBER)',