Skip to content

-Wl,--no-as-needed support for Foreign #49

@avsm

Description

@avsm

Some investigation reveals that there is no one combination that works out-of-the-box, since:

  • --no-as-needed is required on Ubuntu >=11.10
  • --no-as-needed is no longer recognized in MacOS X since >= Lion.

So a configure-time flag is mandatory. I'm wondering if embedding this directive in foreign.cma (via -cclib at configure-time) makes sense? The assumption is that every consumer of foreign.cma will need to force linking, so including the correct compiler option in Ctypes.Foreign makes sense.

I can cook up a patch if you think this sounds right...

(PS: also noticed that twitter/hadoop-lzo#34 has the same bug for their software)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions