summaryrefslogtreecommitdiff
path: root/test cases/linuxlike/3 linker script
AgeCommit message (Collapse)Author
2025-03-04coredata: fix handling of prefixDylan Baker
Which was improperly updated by the option store refactor. Fixes: #14329
2023-09-25tests: fix broken promises with linker scriptsEli Schwartz
This has never, ever, ever worked. You can get away with it a tiny, tiny bit, iff you magically assume several things about both internal implementations, as well as the project source layout and builddir location. This can be witnessed by the way using files() was mercilessly tortured through joining the undefined stringified format value of the file to the current source dir... because it didn't actually *work*, the stringified value isn't an absolute path or a builddir-relative one, but it works as long as you do it from the root meson.build file. Furthermore, this triggers a deprecation warning if you do it. And using it for files() is frivolous, the "static map file" case was correct all along. Fix the configure_file case to demonstrate the same painful hoops we must jump through to get custom_target outputs to work correctly. Fixes #12259
2020-06-22test: Fix linuxlike/3 linker script on Solaris 11.4Alan Coopersmith
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>
2019-11-18Use strict function prototypesMichael Hirsch, Ph.D
2019-11-17use '-Werror=unused-parameter' for gcc/clang on project tests and ↵Michael Hirsch, Ph.D
-fimplicit-none on fortran Fortran: check for undeclared variables by forcing implicit none everywhere C/C++: check for unused parameters and return types removed unused variables from test cases ci: do missing return and unused arg check with Github Actions
2017-05-08Allow link_depends to take strings, Files or generated objects. Closes #1172Dylan Baker
Currently only strings can be passed to the link_depends argument of executable and *library, which solves many cases, but not every one. This patch allows generated sources and Files to be passed as well. On the implementation side, it uses a helper method to keep the more complex logic separated from the __init__ method. This also requires that Targets set their link_depends paths as Files, and the backend is responsible for converting to strings when it wants them. This adds tests for the following cases: - Using a file in a subdir - Using a configure_file as an input - Using a custom_target as an input It does not support using a generator as an input, since currently that would require calling the generator twice, once for the -Wl argument, and once for the link_depends. Also updates the docs.
2014-06-22The mass flags -> args renaming for consistency.Jussi Pakkanen
2014-03-07Added a link_depends keyword for build targets.Jussi Pakkanen
2014-03-07Can get source dir location and use it to build stuff.Jussi Pakkanen
2014-03-07Can define custom linker flags.Jussi Pakkanen