solana-cli: get libc++ headers on Darwin from stdenv.cc.libcxx

This commit is contained in:
Randy Eckenrode
2025-04-18 19:06:38 -04:00
parent 61cc687061
commit 1c83a06c53
+2 -4
View File
@@ -6,7 +6,6 @@
darwin,
udev,
protobuf,
libcxx,
rocksdb_8_3,
installShellFiles,
pkg-config,
@@ -99,7 +98,6 @@ rustPlatform.buildRustPackage rec {
]
++ lib.optionals stdenv.hostPlatform.isLinux [ udev ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
libcxx
IOKit
Security
AppKit
@@ -133,8 +131,8 @@ rustPlatform.buildRustPackage rec {
# Require this on darwin otherwise the compiler starts rambling about missing
# cmath functions
CPPFLAGS = lib.optionals stdenv.hostPlatform.isDarwin "-isystem ${lib.getDev libcxx}/include/c++/v1";
LDFLAGS = lib.optionals stdenv.hostPlatform.isDarwin "-L${lib.getLib libcxx}/lib";
CPPFLAGS = lib.optionals stdenv.hostPlatform.isDarwin "-isystem ${lib.getInclude stdenv.cc.libcxx}/include/c++/v1";
LDFLAGS = lib.optionals stdenv.hostPlatform.isDarwin "-L${lib.getLib stdenv.cc.libcxx}/lib";
# If set, always finds OpenSSL in the system, even if the vendored feature is enabled.
OPENSSL_NO_VENDOR = 1;