I'm trying to compile a particular package for multi simulation called MUSIC (https://github.com/INCF/MUSIC). I didn't have any problems to compile it on ubuntu but when I try to compile it on os x I get this error:
ld: unknown option: -z
collect2: error: ld returned 1 exit status
make[2]: *** [libmusic.la] Error 1
I tried almost everything: cross-compiling
(the cross-compiler does not work), using ld installed with binutils... but I always get the same error.
I know it is an old question, but I will answer for the sake of completion.
This was solved with https://github.com/INCF/MUSIC/pull/24.
It turns out I got the same error when trying to compile csstidy. In my case I had to remove the linker flags directly in the Makefile.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With