Skip to content

Linking error, -fPIC option required #38

Description

@commandus

When I tried to make a shared library uses libecec.a, ar shows error with explanation to use -fPIC options on libecec.a so I fixed it by adding line:

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

into cmake file.

Activity

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

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