Skip to content

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

@baysonfox

Description

@baysonfox

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions