Linking fails on macOS, ar has no flag D #3839

Open
ecraven opened this Issue Oct 19, 2016 · 4 comments

Projects

None yet

2 participants

@ecraven
Contributor
ecraven commented Oct 19, 2016 edited

As @tomyun mentioned in #3827, macOS does not have the `ar' flag D, so linking with our default flags crD fails.
Can anyone with macOS experience recommend a good set of ar flags?

@fluffyfreak
Contributor

@ecraven since none of us understood the original commit due to ar flags being absolutely impossible to Google, or to understand once you have found something, can you tell us what ar flags are for? And what D was supposed to do?

@fluffyfreak
Contributor

Just thinking that if we didn't need them previously, can we just remove them again?

@ecraven
Contributor
ecraven commented Oct 19, 2016

If we do not set ARFLAGS, they are cru by default with autotools. ar complains while linking with a warning. The intention of the fix was to get rid of that warning.
I think the best way forward would be to have different ARFLAGS on linux and macOS (crD for linux, cru for macOS). I'll start a PR later, but I cannot test on macOS :-/

@fluffyfreak
Contributor

Separate configs would be best I think then. From reading the feedback @tomyun gave it looks like they just need leaving blank on OSX.

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