diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2020-06-08 11:39:57 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2020-06-22 15:01:17 -0700 |
commit | 77935db7b0a36b499d07a142f7a97cf219d1da5a (patch) | |
tree | dea282e6c2d5cacadd3207e1e70dce9c8e9e5a10 /test cases | |
parent | e06b04dc809935fdd5865d59ce8a8bd28a5039f6 (diff) | |
download | meson-77935db7b0a36b499d07a142f7a97cf219d1da5a.zip meson-77935db7b0a36b499d07a142f7a97cf219d1da5a.tar.gz meson-77935db7b0a36b499d07a142f7a97cf219d1da5a.tar.bz2 |
test: Fix linuxlike/3 linker script on Solaris 11.4
Solaris linker added support for GNU-style --version-script in Solaris 11.4,
but requires adding the -z gnu-version-script-compat flag to enable it.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/linuxlike/3 linker script/meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/linuxlike/3 linker script/meson.build b/test cases/linuxlike/3 linker script/meson.build index 63765e7..5901bf7 100644 --- a/test cases/linuxlike/3 linker script/meson.build +++ b/test cases/linuxlike/3 linker script/meson.build @@ -1,5 +1,11 @@ project('linker script', 'c') +# Solaris 11.4 ld supports --version-script only when you also specify +# -z gnu-version-script-compat +if meson.get_compiler('c').get_linker_id() == 'ld.solaris' + add_project_link_arguments('-Wl,-z,gnu-version-script-compat', language: 'C') +endif + # Static map file mapfile = 'bob.map' vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile) |