Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Makefile using (ar) utility for Mac. #43

Closed
snOm3ad opened this issue Dec 18, 2018 · 2 comments · May be fixed by #207
Closed

Error in Makefile using (ar) utility for Mac. #43

snOm3ad opened this issue Dec 18, 2018 · 2 comments · May be fixed by #207

Comments

@snOm3ad
Copy link

snOm3ad commented Dec 18, 2018

The Makefile contains the following (on line 72)
$(LIBFILE): $(LIBOBJ) $(AR) -crs $@ -- $^
The command fails on MacOS High Sierra because the ar utility does not recognize the -- as valid syntax. Removing the double dash, solved the issue for me.

@nayuki
Copy link
Owner

nayuki commented Dec 18, 2018

Yeah, I saw the same problem with ar and -- on OpenBSD. But using -- to end the list of flags is supported in many programs (a GNU-ism maybe?), and adds to the robustness against accidental flags.

@IlyaDiallo
Copy link

Yeah, I saw the same problem with ar and -- on OpenBSD. But using -- to end the list of flags is supported in many programs (a GNU-ism maybe?), and adds to the robustness against accidental flags.

Is the purpose of the -- solely to "add robustness again accidental flags" (on Linux) ?
If so, is it worth it, considering that it's an invalid syntax on other systems ?

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 a pull request may close this issue.

3 participants