cctools-port icon indicating copy to clipboard operation
cctools-port copied to clipboard

Getting error "/usr/sbin/ld: unrecognized option 'dynamic"

Open sunflsks opened this issue 5 years ago • 1 comments

Whenever I try to compile anything with clang and specify the -target flag, I seem to be getting this error. If I symlink gold to /usr/local/bin/ld, it goes away, but gets replaced by "unrecognized option: -arch". I compiled it with the Apple LLVM+Clang, if that makes any difference.

sunflsks avatar Jun 16 '20 08:06 sunflsks

cctools must be in PATH and -target must match the prefix of cctools.

tpoechtrager avatar Jun 16 '20 12:06 tpoechtrager