Skip to content

Fix macOS build by using standard STRIP_LIBS variable#1

Open
StanWijn wants to merge 1 commit intomclements:developfrom
StanWijn:develop
Open

Fix macOS build by using standard STRIP_LIBS variable#1
StanWijn wants to merge 1 commit intomclements:developfrom
StanWijn:develop

Conversation

@StanWijn
Copy link
Copy Markdown

The hardcoded strip --strip-debug command fails on non-GNU systems like macOS, which use a different syntax. The version of strip included with Apple's Command Line Tools doesn't recognize the --strip-debug option.

This commit replaces the custom command with the R-provided $(STRIP_LIBS) variable, allowing the build system to use the platform-specific command.

@mclements
Copy link
Copy Markdown
Owner

Thank you for bringing this issue to my attention.

Your code did not strip the file on Linux. Given that stripping is not portable across implementations (and it only reduces the file size by 50%), I propose removing the stripping from the Makevars -- and that I then close this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants