Skip to content

Commit 7c5f2d9

Browse files
authored
Merge pull request #26 from dcdillon/feature/plugin-solaris-support
Plugin now supports stripping in solaris
2 parents b868d05 + 9409393 commit 7c5f2d9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

R/plugin.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
# that the linker needs or empty string if it is unknown.
2222
.getLinkerOptions <- function(cmd) {
2323
if (cmd != "") {
24-
output <- system(paste0(cmd, " --version"), intern=TRUE)
24+
output <- system(paste0(cmd, " --version 2>&1"), intern=TRUE)
2525

2626
if (grepl("^GNU ld", output[1])) {
2727
return("-S")
2828
} else if (grepl("^GNU gold", output[1])) {
2929
return("-S")
30+
} else if (grepl("Solaris Link Editors", output[1])) {
31+
return("-zstrip-class=debug")
3032
}
3133
}
3234

0 commit comments

Comments
 (0)