void-packages/srcpkgs/R-cran-Rcpp/patches/1.0.5--musl.patch
Piotr Wójcik 66b24e61b5 R-cran-Rcpp: update to 1.0.8.
Removing -D__MUSL__, as it is defined by R globally
cf. 626e5eb25
2022-01-29 19:51:56 +01:00

29 lines
882 B
Diff

From f78a62797de3d02b2ca841e3aa240bab961912cf Mon Sep 17 00:00:00 2001
From: Piotr Wójcik <chocimier@tlen.pl>
Date: Sat, 29 Jan 2022 17:51:20 +0100
Subject: musl
Relying on __MUSL__ being defined worked with R-cran build style,
as R template exports it. With other build styles things failed.
Detect glibc instead.
---
inst/include/Rcpp/exceptions_impl.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inst/include/Rcpp/exceptions_impl.h b/inst/include/Rcpp/exceptions_impl.h
index 8f45028..74763d9 100644
--- a/inst/include/Rcpp/exceptions_impl.h
+++ b/inst/include/Rcpp/exceptions_impl.h
@@ -34,7 +34,7 @@
defined(__HAIKU__) || \
defined(__ANDROID__)
# define RCPP_DEMANGLER_ENABLED 0
-# elif defined(__GNUC__) || defined(__clang__)
+# elif defined(__GLIBC__)
# include <execinfo.h>
# define RCPP_DEMANGLER_ENABLED 1
# else
--
2.35.0