-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Describe the bug
When running the tests on Solaris 11.4, the runs of test cases/rust/13 external c dependencies with -Dstatic=true incorrectly report that libz.a is found, and then fail when ninja calls gcc for the linking step because Solaris only packages libz.so, and not libz.a.
To Reproduce
(in a checked out copy of this repo on Solaris 11.4)
cd test\ cases/rust/13\ external\ c\ dependencies/
env PKG_CONFIG_PATH=/usr/lib/64/pkgconfig python3 ../../../meson.py setup --wipe builddir -Dmethod=system -Dstatic=true
cd builddir/
ninja
or with -Dmethod set to pkg-config instead of system
When using -Dmethod=pkg-config it even correctly output a warning that this wouldn't work, but continued to try anyway:
WARNING: Static library 'z' not found for dependency 'zlib', may not be statically linked
Expected behavior
I expected the if not dep_zlib.found() clause in meson.build to trigger the 'MESON_SKIP_TEST: Could not find a @0@ zlib'.format(get_option('static') ? 'static' : 'shared') message and exit.
system parameters
- native build
- Oracle Solaris 11.4
- Python 3.7.13
- meson 0.63.3
- 1.11.0
Metadata
Metadata
Assignees
Labels
No labels