cwalk: new package - #1387
cwalk: new package#1387
Conversation
b13b7a3 to
a1916f6
Compare
|
A release was pushed with fixed meson version. |
a1916f6 to
8fd0afd
Compare
|
It seems the default option for For some reason, Visual Studio check script is checking for the presence of the static one... Something wrong on my end? Thanks! |
is caused by no functions being exported. This can be fixed with a custom def file. edit: I see the problem. CMakeLists.txt and meson.build differ. CWK_SHARED must be passed when building as shared. |
|
This is being fixed upstream likle/cwalk#46 |
8b061a3 to
77c69b3
Compare
|
Now all tests pass! :D |
77c69b3 to
fc2c844
Compare
|
Upstream fix at likle/cwalk#47 |
|
From upstream, @likle asks:
|
|
Ping @neheb :) |
|
Thanks @neheb! Do you have an answer for #1387 (comment) ? How does meson deal with dual builds? Thanks again!! |
|
Meson 1.3.0 has support for dedicated shared/static language arguments to |
|
both builds both shared and static. When using in a dependency, the shared is used by default. In wraps around here, typically != static is checked to enable a SHARED macro. |
|
But the static library will be built with the wrong flags: project('bothlibs', 'c')
library(
'both',
configure_file(configuration: {}, macro_name: 'both', output: 'both.c'),
c_args: get_option('default_library') != 'static' ? '-DSHARED' : [],
)▸ meson setup --prefix="$PWD/dist/native" --default-library=both -- build/native
[…]
▸ meson compile -C build/native --ninja-args= -v
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/bpierre/tmp/bothlibs/build/native -v
ninja: Entering directory `/home/bpierre/tmp/bothlibs/build/native'
[1/3] ccache cc -Ilibboth.so.p -I. -I../.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g -fPIC -DSHARED -MD -MQ libboth.so.p/meson-generated_.._both.c.o -MF libboth.so.p/meson-generated_.._both.c.o.d -o libboth.so.p/meson-generated_.._both.c.o -c both.c
[2/3] rm -f libboth.a && gcc-ar csrDT libboth.a libboth.so.p/meson-generated_.._both.c.o
[3/3] cc -o libboth.so libboth.so.p/meson-generated_.._both.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,-soname,libboth.so |
|
IMHO, wraps that need special shared/static arguments should use |
|
Right. It’s usually not an issue with GCC based compilers but not MSVC. The best solution for MSVC currently is to avoid these and use def files. |
No description provided.