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

Open
opened 2020-06-16 03:13:29 -05:00 by sunflsks · 1 comment
sunflsks commented 2020-06-16 03:13:29 -05:00 (Migrated from github.com)

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.

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.
tpoechtrager commented 2020-06-16 07:08:49 -05:00 (Migrated from github.com)

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

`cctools` must be in `PATH` and `-target` must match the prefix of `cctools`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
miles/cctools-port#82
No description provided.