Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable autosetting of optimization flags by libffi. #8996

Merged
merged 1 commit into from
May 21, 2022

Conversation

mahge
Copy link
Contributor

@mahge mahge commented May 21, 2022

  • Disable the setting of optimization flags. automatically by libffi's
    own decisions. For OpenModelica we want to pass the options and flags
    ourselves.

    This was ignoring all CFLAGS we pass to libffi including -fPIC
    breaking the build of OpenModelica on Fedora 36 because the libray
    could not be linked to a shared library (since it was not compiled as
    position independent code.)

@mahge mahge added COMP/Build System Issue and pull request related to the build systems COMP/OMC/3rdParty Issues and pull requests related to 3rdParty code for omc (only). labels May 21, 2022
@mahge mahge self-assigned this May 21, 2022
@mahge mahge enabled auto-merge (squash) May 21, 2022 16:32
  - Disable the setting of optimization flags. automatically by libffi's
    own decisions. For OpenModelica we want to pass the options and flags
    ourselves.

    This was ignoring all CFLAGS we pass to libffi including `-fPIC`
    breaking the build of OpenModelica on Fedora 36 because the libray
    could not be linked to a shared library (since it was not compiled as
    position independent code.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
COMP/Build System Issue and pull request related to the build systems COMP/OMC/3rdParty Issues and pull requests related to 3rdParty code for omc (only).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant