mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #6283] [MERGED] build: fix "warning: "_FORTIFY_SOURCE" redefined" #5929
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#5929
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/6283
Author: @kmk3
Created: 3/19/2024
Status: ✅ Merged
Merged: 3/20/2024
Merged by: @kmk3
Base:
master← Head:build-fix-fortify-warn📝 Commits (1)
bce208dbuild: fix "warning: "_FORTIFY_SOURCE" redefined"📊 Changes
3 files changed (+48 additions, -1 deletions)
View changed files
📝
config.mk.in(+1 -1)📝
configure(+43 -0)📝
configure.ac(+4 -0)📄 Description
The warning is being produced on Arch since pacman 6.1, which changed
-D_FORTIFY_SOURCE=2to-D_FORTIFY_SOURCE=3in CFLAGS inmakepkg.conf:
To fix this, only add
-D_FORTIFY_SOURCEto EXTRA_CFLAGS if it does notcause any warnings with CFLAGS and CPPFLAGS during compilation.
The effect remains the same: The build system still defines the macro by
default (if there are no warnings) and the user/distribution can still
override it through CFLAGS/CPPFLAGS.
Fixes #6282.
Reported-by: @glitsj16
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.