Skip to content

-fPIC compiler flag for building shared libraries (.so) on Linux #33

@justinh2002

Description

@justinh2002

-fPIC means Position Independent Code. It tells the compiler to generate machine code that can be loaded at arbitrary memory addresses, which is mainly needed for shared libraries (.so files on Linux).

Is this enabled by default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions