Add -static-libgcc to solaris-sparcv7-gcc shared_ldflag
authorTodd C. Miller <Todd.Miller@quest.com>
Fri, 12 Mar 2021 20:44:54 +0000 (13:44 -0700)
committerTomas Mraz <tomas@openssl.org>
Tue, 5 Apr 2022 10:11:45 +0000 (12:11 +0200)
This avoids a run-time dependency on libgcc_s.so which may not be
present on all systems.  OpenSSL already uses -static-libgcc for
the solaris-x86-gcc and solaris64-x86_64-gcc configurations.

CLA: trivial

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14538)

Configurations/10-main.conf

index 9368cf6748449ebb90eb5ebe13926681f40f7a08..305cc0daec3bba522de60bbd1d7af1ee4fcf983a 100644 (file)
@@ -317,7 +317,7 @@ my %targets = (
         ex_libs          => add(threads("-pthread")),
         bn_ops           => "BN_LLONG RC4_CHAR",
         shared_cflag     => "-fPIC",
-        shared_ldflag    => add_before("-shared"),
+        shared_ldflag    => add_before("-shared -static-libgcc"),
     },
     "solaris-sparcv8-gcc" => {
         inherit_from     => [ "solaris-sparcv7-gcc" ],