Skip to content

Conversation

@bavshin-f5
Copy link
Member

As discussed offline with @ensh63, the Makefile change in #65 was incomplete. Added suggested changes to fixup and extracted to a separate PR.

I'm also adding BoringSSL configs because it is tiresome and annoying to sync these between machines for testing. Just a reminder that this still requires using a git snapshot of rust-openssl.

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 PR refactors the Makefile structure for dynamic module builds by standardizing variable names and introducing proper separation between Cargo-built modules and nginx-built modules. It also adds BoringSSL configuration support for testing purposes.

  • Renamed NGX_MODEXT to SHLIB_EXT for better clarity
  • Replaced hardcoded module paths with standardized variables (CARGO_DEBUG_MODULE, CARGO_RELEASE_MODULE, NGINX_BUILT_MODULE)
  • Added BoringSSL build configurations for both dynamic and static linking

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
build/compat-posix.mk Renamed NGX_MODEXT to SHLIB_EXT for BSD make compatibility
build/compat-gnu.mk Renamed NGX_MODEXT to SHLIB_EXT for GNU make compatibility
build/build-release.mk Replaced hardcoded module paths with standardized variables
build/build-debug.mk Replaced hardcoded module paths with standardized variables
build/build-boringssl.mk Added new BoringSSL dynamic module build configuration
build/build-boringssl-static.mk Added new BoringSSL static module build configuration
build/build-aws-lc.mk Updated to use standardized variables and improved target structure
Makefile Introduced clear separation between module name, target name, and standardized path variables

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@bavshin-f5 bavshin-f5 force-pushed the make-dynamic-mods branch 2 times, most recently from 29da491 to cffe9a6 Compare October 8, 2025 20:16
Copy link
Contributor

@ensh63 ensh63 left a comment

Choose a reason for hiding this comment

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

Looks good.

Define all the shared module targets in the main Makefile and allow
build/*.mk files to add the correct dependencies.
@bavshin-f5 bavshin-f5 merged commit bb036f0 into nginx:main Oct 8, 2025
15 checks passed
@bavshin-f5 bavshin-f5 deleted the make-dynamic-mods branch October 8, 2025 20:41
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