Open Rogni opened 3 years ago
This is also broken with dmd, only gdc currently works.
Is this a general bug when passing absolute paths to libraries, or is this boost specific?
tried
zlib = dependency('zlib', method: 'cmake')
executable('app', src, dependencies: zlib)
in build.ninja:
LINK_ARGS = -L=--allow-shlib-undefined -link-defaultlib-shared /usr/lib/x86_64-linux-gnu/libz.so -L=-lstdc++
app linked
it has to do with getting version numbers, ldc and dmd expect the file to end in .so
(or whatevert) not .so.X.Y.Z
, but if you pass them as -L=mylib.so.1.2.3
that works. And it's really easy for the DMD and LDC to do that. so that's what I did my my PR.
Describe the bug https://travis-ci.org/github/Rogni/MesonLinkWithBoostBug/builds/735436192#L307
error link boost using ldc2 in last versions meson (0.54, 0.55)
Error:
To Reproduce reproduced in versions 0.54 and 0.55 in version 0.53.2 boost linked as
LINK_ARGS = -L=-L--allow-shlib-undefined -L=--start-group -L=-lboost_thread -L=-lstdc++ -L=--end-group
https://github.com/Rogni/MesonLinkWithBoostBug
meson.build
Expected behavior maybe need append prefix
-L=
to/usr/lib/x86_64-linux-gnu/libboost_thread.so.1.65.1
system parameters
meson --version
reproduced in versions 0.54.3, 0.55.3ninja --version
: 1.10.0.git.kitware.jobserver-1