diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-09-23 17:20:45 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-10-10 13:32:22 -0400 |
commit | 0a3a9fa0c3ebf45c94d9009a59cead571cbecf7b (patch) | |
tree | 9c91885f2dc1a908192fb3fe5e2ac03c8510059d /unittests | |
parent | 253ff71e6b801786290b6ecb23aea61dcfeebeca (diff) | |
download | meson-0a3a9fa0c3ebf45c94d9009a59cead571cbecf7b.zip meson-0a3a9fa0c3ebf45c94d9009a59cead571cbecf7b.tar.gz meson-0a3a9fa0c3ebf45c94d9009a59cead571cbecf7b.tar.bz2 |
ar linker: generate thin archives for uninstalled static libraries
Since they will never be used outside of the build directory, they do
not need to literally contain the .o files, and references will be
sufficient.
This covers a major use of object libraries, which is that the static
library would potentially take up a lot of space by including another
copy of every .o file.
Fixes #9292
Fixes #8057
Fixes #2129
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/allplatformstests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 707fc1d..9468fd5 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -1447,7 +1447,7 @@ class AllPlatformTests(BasePlatformTests): link_cmd = ['ar', 'csr', outfile, objectfile] link_cmd = linker.get_exelist() link_cmd += linker.get_always_args() - link_cmd += linker.get_std_link_args() + link_cmd += linker.get_std_link_args(False) link_cmd += linker.get_output_args(outfile) link_cmd += [objectfile] self.pbcompile(compiler, source, objectfile, extra_args=extra_args) |