aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-01-21 12:05:38 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-01-28 05:10:00 +0530
commit50c4851daa79919f475e2885653eafd572bd6dfb (patch)
tree7d775bb8f938d8fe54b04082c7d65674fc1d0aa2 /run_unittests.py
parenta83c7b9ad5756330f5ce51ef150f612d3ab2b3ab (diff)
downloadmeson-50c4851daa79919f475e2885653eafd572bd6dfb.zip
meson-50c4851daa79919f475e2885653eafd572bd6dfb.tar.gz
meson-50c4851daa79919f475e2885653eafd572bd6dfb.tar.bz2
Use CompilerArgs for generation of link commands
Also, now the linker options are added from various sources in the same order as compiler arguments for compile commands. As a result, all libraries and library paths from external and internal sources are added after all the linker options have been added. As a result option_link_args() are added when libraries are added to the list since currently the only thing they add are the libraries specific in cpp_winlibs/c_winlibs. This fixes an issue where compilation with the MinGW toolchain (which uses static libraries for winlibs) would result in undefined symbol errors because the static libraries would be added in the very beginning and hence would not be scanned for symbols. Detailed comments have been added that explain where each option is coming from and why it's been added at that specific point. More improvements are necessary here because we currently still unnecessarily repeat libraries from dependencies over and over, which is a major problem in gst-build because inter-subproject dependencies cause linker command-lines to almost exceed the argument list length limit imposed by the kernel. It is also causing us to unnecessarily add static libraries which have already been linked into a shared library. See: self.build_target_link_arguments()
Diffstat (limited to 'run_unittests.py')
0 files changed, 0 insertions, 0 deletions