Skip to content

-Wl,-start-group is removed from --libs #371

@sebhub

Description

@sebhub

Consider the following name.pc file:

Name: name
Version: 1.0
Description: description
Libs: -Wl,--start-group -la -lb -Wl,--end-group -nodefaultlibs -Wl,--start-group -la -lgcc -Wl,--end-group -Wl,--gc-sections

With pkg-config 1.8.1 I get:

pkg-config --libs name.pc
-lb -Wl,--end-group -nodefaultlibs -Wl,--start-group -la -lgcc -Wl,--end-group -Wl,--gc-sections

This leads to linker errors like this:

ld: group ended before it began (--help for usage)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions