Sunday, October 01, 2023

Re: update games/taisei to 1.4

On 2023/09/30 13:10:19 +0100, Stuart Henderson <stu@spacehopper.org> wrote:
> On 2023/09/30 10:00, Omar Polo wrote:
> > c++ -o src/taisei [...many objects files...] \
> > -flto \
> > -Wl,--as-needed \
> > -Wl,--allow-shlib-undefined -O2 -pipe -g \
> > -Wl,--start-group \
> [..]
>
> hmm, perhaps the other libs are getting stripped by --as-needed?

no idea, i couldn't make meson to not use that flag.

> > ONLY_FOR_ARCHS = amd64 aarch64 i386
> ..
> > +WANTLIB += SDL2 c c++ crypto freetype m opusfile png shaderc_shared
> > +WANTLIB += spirv-cross-c-shared webpdecoder z zstd
> ..
> > +COMPILER = base-clang ports-gcc
>
> that WANTLIB will fail on systems that don't have base-clang,
> so it might make sense to remove ports-gcc from that list - or
> to list ${COMPILER_LIBCXX} anyway and ignore the "Extra" warning
> from check-lib-depends.
>
> although, ONLY_FOR_ARCHS only lists base-clang archs anyway,
> so in practical terms it won't be hit unless ONLY_FOR_ARCHS is
> changed.

I've opted for keeping the COMPILER as-is and use ${COMPILER_LIBCXX}
in wantlib, ignoring the two "Extra" warnings for c++abi and pthreads.
(with a comment above wantlib)


Thanks!

No comments:

Post a Comment