Skip to content

Do not build shared libraries with -pie#6

Open
Flamefire wants to merge 1 commit intoamd:devfrom
Flamefire:patch-1
Open

Do not build shared libraries with -pie#6
Flamefire wants to merge 1 commit intoamd:devfrom
Flamefire:patch-1

Conversation

@Flamefire
Copy link
Copy Markdown

-pie builds an executable and when passed after -shared won't create a shared library anymore.

CMake 4.1.0 changed the order of CMAKE_SHARED_LINKER_FLAGS to be passed after the shared-library-creation-flags and the build now fails.

However it was wrong to pass this flag to the shared library linking anyway, so remove it from there.

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation
  • Other

Synopsis

Fixes d5c7c1b

@bartoldeman
Copy link
Copy Markdown

@Flamefire this PR will need to be rebased, since the dev branch was force pushed.
In #4 my patch was already applied independently before my PR in that other dev branch.

`-pie` builds an executable and when passed after `-shared` won't create a shared library anymore.

CMake 4.1.0 changed the order of `CMAKE_SHARED_LINKER_FLAGS` to be passed after the shared-library-creation-flags and the build now fails.

However it was wrong to pass this flag to the shared library linking anyway, so remove it from there.
@Flamefire
Copy link
Copy Markdown
Author

Thanks, done

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants