Open SethArchambault opened 1 year ago
Hmm, good catch, but I’ll need to investigate. I have a couple fixes in mind:
-soname
option itself into a variable instead of hard coding it.ld
or $(LD)
or similar instead of $(CC)
for the link step. May be combined with step 2 to work with clang, should someone use it to, say, enable link-time-optimisation or use a special link script.Putting it on hold for now, I should get to it in one or two weeks. In the mean time, if you fancy doing some testing let me know what you find, this’ll help me.
but I don't really know why
No soname for Darwin, but there's a similar feature "Install name". It was used by you as a workaround but it's Darwin-only, so no way this gonna work anywhere else.
Was getting this error:
And someone on stackoverflow said to change soname to install_name, so I did that: https://stackoverflow.com/questions/4580789/ld-unknown-option-soname-on-os-x
And it worked! But not very scientific and could have downsides.. But figured I'd let ya know.