Skip to content

Haiku: Remove redundant PIC/PIE flags#127443

Closed
trungnt2910 wants to merge 1 commit intodotnet:mainfrom
trungnt2910:dev/trungnt2910/haiku-config
Closed

Haiku: Remove redundant PIC/PIE flags#127443
trungnt2910 wants to merge 1 commit intodotnet:mainfrom
trungnt2910:dev/trungnt2910/haiku-config

Conversation

@trungnt2910
Copy link
Copy Markdown
Contributor

Haiku toolchains already pass -pic and link everything as shared objects (-shared).

-pic is therefore redundant. -pie may also cause additional problems when passed to the linker along with -shared.

Part of #55803.

Copilot AI review requested due to automatic review settings April 27, 2026 02:55
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Apr 27, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts native build/link flags for Haiku to avoid passing redundant or conflicting PIC/PIE options.

Changes:

  • Excludes Haiku targets from adding -pie to executable linker flags.
  • Removes explicit executable compile options (-fPIE / Haiku-specific -fPIC) from this platform-flag block.

Comment thread eng/native/configureplatform.cmake
@trungnt2910 trungnt2910 force-pushed the dev/trungnt2910/haiku-config branch from fae43c7 to e8380f2 Compare April 27, 2026 03:02
Haiku toolchains already pass `-pic` and link everything as shared
objects (`-shared`).

`-pic` is therefore redundant. `-pie` may also cause additional problems
when passed to the linker along with `-shared`.
Copilot AI review requested due to automatic review settings April 27, 2026 03:08
@trungnt2910 trungnt2910 force-pushed the dev/trungnt2910/haiku-config branch from e8380f2 to 5a9184f Compare April 27, 2026 03:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@trungnt2910
Copy link
Copy Markdown
Contributor Author

Closing, this messes up native builds.

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

Labels

area-Infrastructure community-contribution Indicates that the PR has been added by a community member

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants