Skip to content

Using with static libstdc++ #5

@mytchel

Description

@mytchel

Hi. I had some trouble getting this to work with a static linked libstdc++ which is required for the system I'm using.

I got it to work eventually but changing the __cxa... function overrides to use -Wl,-wrap=... instead of the dynamic method being used.

This also works when not static linking libstdc++. It might be more portable.

New linker flags needed -Wl,-wrap=__cxa_begin_catch -Wl,-wrap=__cxa_end_catch -Wl,-wrap=__cxa_throw.
And I've attached a patch of the code changes.

funtrace.patch

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