aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-12-11 10:58:52 +0200
committerLudovic Courtès <ludo@gnu.org>2024-08-31 10:42:48 +0200
commit09d62629a91b7623ed9c86f4d52db32682ec88a0 (patch)
tree752c269c58c0bf253a524448b308dbb25bf4ff12
parenta9136076eb639731581cb50e996f63e431eaff72 (diff)
downloadguix-09d62629a91b7623ed9c86f4d52db32682ec88a0.tar
guix-09d62629a91b7623ed9c86f4d52db32682ec88a0.tar.gz
guix: search-paths: Fix obj-c++ search paths.
* guix/search-paths.scm ($OBJCPLUS_INCLUDE_PATH): Also search 'include/c++'. Change-Id: I403674038c1c3bf1251c710031496363c924f19a
-rw-r--r--guix/search-paths.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/guix/search-paths.scm b/guix/search-paths.scm
index edd416ccdc..b2a0b838c0 100644
--- a/guix/search-paths.scm
+++ b/guix/search-paths.scm
@@ -100,7 +100,9 @@
(define $OBJCPLUS_INCLUDE_PATH
(search-path-specification
(variable "OBJCPLUS_INCLUDE_PATH")
- (files '("include"))))
+ ;; Add 'include/c++' here so that <cstdlib>'s "#include_next
+ ;; <stdlib.h>" finds GCC's <stdlib.h>, not libc's.
+ (files '("include/c++" "include"))))
(define $LIBRARY_PATH
(search-path-specification