mirror of https://github.com/openssl/openssl.git
Fix -static builds
Pull in check from #10878 Move disabling of pic, threads and statics up higher before they are checked. Fixes #12772 Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/12773)
This commit is contained in:
parent
dfe07182aa
commit
cfd7225fbb
|
@ -1201,6 +1201,10 @@ foreach (keys %useradd) {
|
||||||
# At this point, we can forget everything about %user and %useradd,
|
# At this point, we can forget everything about %user and %useradd,
|
||||||
# because it's now all been merged into the corresponding $config entry
|
# because it's now all been merged into the corresponding $config entry
|
||||||
|
|
||||||
|
if (grep { $_ eq '-static' } @{$config{LDFLAGS}}) {
|
||||||
|
disable('static', 'pic', 'threads');
|
||||||
|
}
|
||||||
|
|
||||||
# Allow overriding the build file name
|
# Allow overriding the build file name
|
||||||
$config{build_file} = env('BUILDFILE') || $target{build_file} || "Makefile";
|
$config{build_file} = env('BUILDFILE') || $target{build_file} || "Makefile";
|
||||||
|
|
||||||
|
@ -1521,10 +1525,6 @@ if ($strict_warnings)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (grep { $_ eq '-static' } @{$config{LDFLAGS}}) {
|
|
||||||
disable('static', 'pic', 'threads');
|
|
||||||
}
|
|
||||||
|
|
||||||
$config{CFLAGS} = [ map { $_ eq '--ossl-strict-warnings'
|
$config{CFLAGS} = [ map { $_ eq '--ossl-strict-warnings'
|
||||||
? @strict_warnings_collection
|
? @strict_warnings_collection
|
||||||
: ( $_ ) }
|
: ( $_ ) }
|
||||||
|
|
Loading…
Reference in New Issue