pkg-config file incorrectly exports internal CXX_FLAGS
Task Info (Flyspray) | |
---|---|
Opened By | Shanoa Ice (shanoaice) |
Task ID | 79913 |
Type | Bug Report |
Project | Arch Linux |
Category | Upstream Bugs |
Version | None |
OS | All |
Opened | 2023-10-11 14:24:55 UTC |
Status | Assigned |
Assignee | Anatol Pomozov (anatolik) |
Details
Description: rocksdb's pkg-config file incorrectly exports the internal CXX_FLAGS they use in the makefiles, which could got included by consumer build systemd and potentially cause compilation failure / overriden c++_std (there is a -std=c++17 in the exported pkg-config cflags).
A patch is avaliable here: https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/rocksdb/pkg-config.patch
Additional info:
- package version(s): 8.5.3 and also the latest release 8.
- link to upstream bug report, if any: https://github.com/facebook/rocksdb/issues/8286
Steps to reproduce:
- Create a meson project and specify the default cpp_std to be C++20.
- Declare a dependency on rocksdb.
- Configure the meson project and examine its generated compile_commands.json and build.ninja. There will most likely be something like
-std=c++20 ... -std=c++17
(irrevelant flags omitted) which cause the prior flag to be overridden.