Commit 074f56d
committed
devel:18/pg_tde: pull gcc-c++ into SUSE chroots for the C++ KMIP client
Upstream commit 844379e (post-2.2.1) made pg_tde need a C++ compiler for
the new C++ KMIP client library. On openSUSE Tumbleweed and Leap 16 the
spec never installed one, so meson fell back to clang++ (present only via
the llvmjit BuildRequires) while C was still compiled by gcc. With SUSE's
default -flto=auto that mixed toolchain cannot be linked: gcc-ar cannot
index clang LLVM bitcode archives and clang's ld.bfd cannot read gcc LTO
objects, failing with
libkmipclient.a: error adding symbols: archive has no index
plugin needed to handle lto object
Add gcc-c++ to the suse_version BuildRequires so meson picks c++ (g++)
and the whole build uses one toolchain.
Verified in a Tumbleweed container against the published staging:18 repo
with clang installed and -flto=auto in C/CXX/LDFLAGS: meson selects
c++ (gcc 15.3.0), all targets link, pg_tde.so is produced.
Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>1 parent 4e6353d commit 074f56d
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
0 commit comments