Skip to content

Revert #981 with a proper support for CXXSTDLIB#1029

Merged
zaidoon1 merged 1 commit intorust-rocksdb:masterfrom
Rexagon:master
Aug 13, 2025
Merged

Revert #981 with a proper support for CXXSTDLIB#1029
zaidoon1 merged 1 commit intorust-rocksdb:masterfrom
Rexagon:master

Conversation

@Rexagon
Copy link
Contributor

@Rexagon Rexagon commented Aug 13, 2025

By default cc crate will link C++ standard library with respect to CXXSTDLIB env so there is no need to specify it manually when building RocksDB. However, when we use a manually compiled version, we still need to link stdc++. Otherwise it is not possible to use this library with ROCKSDB_STATIC=1 env without creating a build script or custom rustflags.

This PR reverts #981 and just adds a branch where we use CXXSTDLIB env.

P.S. It also makes sure that <cstdint> is included on linux

Fixes #1014

@zaidoon1 zaidoon1 self-requested a review August 13, 2025 13:05
@zaidoon1 zaidoon1 merged commit 0442de8 into rust-rocksdb:master Aug 13, 2025
8 checks passed
pcholakov pushed a commit to pcholakov/rust-rocksdb that referenced this pull request Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing libc++ symbols when linking static lib on OSX

4 participants