Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on macOS: macOS ld does not recognize --version-script #14

Open
baysonfox opened this issue Dec 28, 2024 · 0 comments
Open

Comments

@baysonfox
Copy link

Currently, macOS ld does not support --version-script, so the build fails when using default ld.
Removing --version-script,obuparse.v in Makefile, would build successfully.

Build logs:

gcc -Wl,--version-script,obuparse.v -shared obuparse.o -o libobuparse.so  
ar rcs libobuparse.a obuparse.o  
ld: unknown options: --version-script  
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant