Skip to content

ignoring duplicate libraries warning #262

@progrium

Description

@progrium

Although we fixed these warnings in the preview release, newer versions of Go cause this warning to show up when compiling DarwinKit programs:

# command-line-arguments
ld: warning: ignoring duplicate libraries: '-lobjc'

This is a known issue upstream in cgo. This issue will track it here. Although it's just a warning, you can suppress it by exporting this environment variable before building:

export CGO_LDFLAGS="-Wl,-no_warn_duplicate_libraries"

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