Skip to content

Check if cabal's cross-section combination of flags passed to GCC is legitimate #5360

Open

Description

@nh2

This tracks what I found in #5356:

Investigate whether it's actually legitimate that cabal tries to combine the extra-libraries etc. flags from different executable/test-suite/benchmark sections into one invocation when checking for the existence of these C libraries by linking an example file with GCC before the build -- there might be flags across the different sections that are mutually exculsive.

To show that it's NOT legitimate, it would suffice to find two conflicting libraries or options, stick them in two different cabal sections, and see if that breaks the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions