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

fix(sys): drop unnecessary flags from vendored build on Linux #82

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

bavshin-f5
Copy link
Member

@bavshin-f5 bavshin-f5 commented Jun 11, 2024

  • -fPIC is not propagated to PCRE2, causing a linker error on Fedora
  • -Wp,-D_FORTIFY_SOURCE=2 conflicts with the compiler builtin default value on Ubuntu 24.04
  • The remaining flags are also not necessary for testing the modules, and the binary produced by nginx-sys/vendored is not meant to be used in production.

Fixes #80

 - `-fPIC` is not propagated to PCRE2, causing a linker error on Fedora
 - `-Wp,-D_FORTIFY_SOURCE=2` conflicts with the compiler builtin default
   value on Ubuntu 24.04
 - The remaining flags are also not necessary for testing the modules,
   and the binary produced by nginx-sys/vendored is not meant to be used
   in production.

Fixes nginx#80
@bavshin-f5 bavshin-f5 force-pushed the cleanup-linux-flags branch from 89098e8 to 5d4fa31 Compare June 11, 2024 18:04
Copy link
Contributor

@dekobon dekobon left a comment

Choose a reason for hiding this comment

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

LGMT!

@bavshin-f5 bavshin-f5 merged commit a1a0dd7 into nginx:master Jun 19, 2024
5 of 6 checks passed
@bavshin-f5 bavshin-f5 deleted the cleanup-linux-flags branch June 19, 2024 00:36
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.

Build error: "_FORTIFY_SOURCE" redefined [-Werror]
2 participants