Skip to content

Commit 75de570

Browse files
author
ripley
committed
implement _R_USE_NO_REMAP_
git-svn-id: https://svn.r-project.org/R/trunk@87328 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 769758e commit 75de570

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

doc/NEWS.Rd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@
158158
\itemize{
159159
\item Control of symbol visibility is now supported on macOS (the
160160
previous check only worked on ELF platforms).
161+
162+
\item Setting environment variable \env{_R_USE_NO_REMAP_} to a
163+
true valueforces \code{R_NO_REMAP} to be defined during
164+
compilation of C code, except for packages with a
165+
\file{src/Makefile}.
161166
}
162167
}
163168

src/library/tools/R/install.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2762,6 +2762,8 @@ if(FALSE) {
27622762
paste0("LTO_FC=", shQuote("$(LTO_FC_OPT)")))
27632763
else if(isFALSE(use_lto)) c("LTO=", "LTO_FC=")
27642764
)
2765+
if(config_val_to_logical(Sys.getenv("_R_USE_NO_REMAP_", "TRUE")))
2766+
makeargs <- c(makeargs, "XDEFS=-DR_NO_REMAP")
27652767
if(config_val_to_logical(Sys.getenv("_R_CXX_USE_NO_REMAP_", "TRUE")))
27662768
makeargs <- c(makeargs, "CXX_DEFS=-DR_NO_REMAP")
27672769
## if(config_val_to_logical(Sys.getenv("_R_USE_STRICT_R_HEADERS_", "FALSE")))

0 commit comments

Comments
 (0)