Skip to content

Conversation

@crazydi4mond
Copy link
Contributor

Fedora and other distributions with strict PIE requirements need position-independent code when linking static libraries into Rust binaries. This adds -fPIC to the C compilation in build.rs and enables CMAKE_POSITION_INDEPENDENT_CODE for the picoquic build.

Fedora and other distributions with strict PIE requirements need
position-independent code when linking static libraries into Rust
binaries. This adds -fPIC to the C compilation in build.rs and
enables CMAKE_POSITION_INDEPENDENT_CODE for the picoquic build.
Copy link

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

This pull request fixes build compatibility for Fedora and other Linux distributions with strict Position Independent Executable (PIE) requirements by adding position-independent code flags to C compilation steps.

Changes:

  • Added CMAKE_POSITION_INDEPENDENT_CODE=ON flag to picoquic CMake build configuration
  • Added -fPIC flag to C compiler invocations in the Rust FFI build script

Reviewed changes

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

File Description
scripts/build_picoquic.sh Enables position-independent code generation for the picoquic CMake build
crates/slipstream-ffi/build.rs Adds -fPIC flag to both C compilation helper functions used when building FFI objects

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Mygod Mygod merged commit d5904d0 into Mygod:main Jan 17, 2026
8 checks passed
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