Skip to content

Remove -Werror, fix LDFLAGS, silence rpm error in Makefile - #16

Open
chewi wants to merge 3 commits into
mattdm:mainfrom
chewi:makefile
Open

Remove -Werror, fix LDFLAGS, silence rpm error in Makefile#16
chewi wants to merge 3 commits into
mattdm:mainfrom
chewi:makefile

Conversation

@chewi

@chewi chewi commented Jun 12, 2024

Copy link
Copy Markdown

Distributions don't like -Werror because it prevents end users from building the software using newer compilers that may raise warnings you don't know about yet. This is particularly bad for source-based distributions like Gentoo.

Some LDFLAGS need to come before the inputs in order to be effective.

Silence the error when the rpm command doesn't exist and add a fallback because the error can trigger QA warnings in non-RPM distros.

chewi added 3 commits June 12, 2024 22:50
Distributions don't like -Werror because it prevents end users from
building the software using newer compilers that may raise warnings you
don't know about yet. This is particularly bad for source-based
distributions like Gentoo.
Some flags need to come before the inputs in order to be effective.
The error can trigger QA warnings in non-RPM distros.
@chewi chewi changed the title Remove -Werror and fix LDFLAGS in Makefile Remove -Werror, fix LDFLAGS, silence rpm error in Makefile Jun 15, 2024
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.

1 participant