diff options
author | Richard Levitte <levitte@openssl.org> | 2020-09-23 16:52:13 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-09-25 12:05:47 +0200 |
commit | 7a032be7f293bd80e3fe18c5568cf382b0b79543 (patch) | |
tree | e6fb82ebaea9b1678871c5a6b1e10aa51c08c8c2 /Configurations | |
parent | 8a288609b12488b5e2dbca28ea54c3dd2c0de15b (diff) |
Build: Make NonStop shared libraries only export selected symbols
We can now re-enable test/recipes/01-test_symbol_presence.t for NonStop.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12962)
Diffstat (limited to 'Configurations')
-rw-r--r-- | Configurations/50-nonstop.conf | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Configurations/50-nonstop.conf b/Configurations/50-nonstop.conf index 64385a809a..21cd64833d 100644 --- a/Configurations/50-nonstop.conf +++ b/Configurations/50-nonstop.conf @@ -16,7 +16,7 @@ '_TANDEM_SOURCE', 'B_ENDIAN'), perl => '/usr/bin/perl', - shared_target => 'self', + shared_target => 'nonstop-shared', shared_extension => ".so", ex_libs => add('-lrld'), enable => ['egd'], @@ -50,7 +50,8 @@ defines => ['NO_GETPID'], cflags => '-Wtarget=tns/r -Wsystype=guardian', lflags => '-Wld="-set systype guardian"', - shared_ldflag => '-Wshared -Wld="-export_all -soname $(@:lib%.so=%)"', + shared_ldflag => '-Wshared -Wld="-soname $(@:lib%.so=%)"', + shared_defflag => '-Wld_obey=', shared_argfileflag => '-Wld_obey=', }, @@ -60,7 +61,8 @@ defines => ['NO_GETPID', '_TANDEM_ARCH=2'], cflags => '-Wtarget=tns/e -Wsystype=guardian', lflags => '-Weld="-set systype guardian"', - shared_ldflag => '-Wshared -Weld="-export_all -soname $(@:lib%.so=%)"', + shared_ldflag => '-Wshared -Weld="-soname $(@:lib%.so=%)"', + shared_defflag => '-Weld_obey=', shared_argfileflag => '-Weld_obey=', }, @@ -70,7 +72,8 @@ defines => ['NO_GETPID', '_TANDEM_ARCH=3'], cflags => '-Wtarget=tns/x -Wsystype=guardian', lflags => '-Wxld="-set systype guardian"', - shared_ldflag => '-Wshared -Wxld="-export_all -soname $(@:lib%.so=%)"', + shared_ldflag => '-Wshared -Wxld="-soname $(@:lib%.so=%)"', + shared_defflag => '-Wxld_obey=', shared_argfileflag => '-Wxld_obey=', }, @@ -79,7 +82,8 @@ template => 1, cflags => '-Wtarget=tns/r -Wsystype=oss', lflags => '-Wld="-set systype oss"', - shared_ldflag => '-Wshared -Wld="-export_all"', + shared_ldflag => '-Wshared', + shared_defflag => '-Wld_obey=', shared_argfileflag => '-Wld_obey=', }, # Itanium + oss: @@ -88,7 +92,8 @@ defines => ['_TANDEM_ARCH=2'], cflags => '-Wtarget=tns/e -Wsystype=oss', lflags => '-Weld="-set systype oss"', - shared_ldflag => '-Wshared -Weld="-export_all"', + shared_ldflag => '-Wshared', + shared_defflag => '-Weld_obey=', shared_argfileflag => '-Weld_obey=', }, # x86_64 + oss: @@ -97,7 +102,8 @@ defines => ['_TANDEM_ARCH=3'], cflags => '-Wtarget=tns/x -Wsystype=oss', lflags => '-Wxld="-set systype oss"', - shared_ldflag => '-Wshared -Wxld="-export_all"', + shared_ldflag => '-Wshared', + shared_defflag => '-Wxld_obey=', shared_argfileflag => '-Wxld_obey=', }, @@ -171,7 +177,7 @@ }, ###################################################################### - # Now for the entried themselves, let's combine things! + # Now for the entries themselves, let's combine things! 'nonstop-nsx' => { inherit_from => [ 'nonstop-common', 'nonstop-archenv-x86_64-oss', |