Skip to content

build: Fix clang compiliation by decontaminating build environment#68

Open
salahcoronya wants to merge 1 commit intoarthurdejong:masterfrom
salahcoronya:build-decontamination
Open

build: Fix clang compiliation by decontaminating build environment#68
salahcoronya wants to merge 1 commit intoarthurdejong:masterfrom
salahcoronya:build-decontamination

Conversation

@salahcoronya
Copy link

The statements in configure.ac "pollute" the environmental variables. This causes problem when --enable-warnings is set and clang is the compiler. It only works by accident on gcc because gcc aborts on illegal flags anyway, but clang does not which causes -Werror to get added to the check. One of the warning conflicts with that, causing it to be uncompiliable under clang.

This patch removes the environmental polluation by storing the flags in automake variables. The flags are then added by automake. Also, there already a function in autoconf-archive to determine valid flags, so use that instead of the hand-rolled one.

…clang

The statements in configure.ac "pollute" the environmental variables. This causes problem
when --enable-warnings is set and clang is the compiler. It only works by accident on
gcc because gcc aborts on illegal flags anyway, but clang does not which causes -Werror
to get added to the check. One of the warning conflicts with that, causing it to be
uncompiliable under clang.

This patch removes the  environmental polluation by storing the flags in automake variables.
The flags are then added by automake. Also, there already a function in autoconf-archive to
determine valid flags, so use that instead of the hand-rolled one.

Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
@salahcoronya salahcoronya force-pushed the build-decontamination branch from e0dc46d to 21ced2d Compare July 7, 2024 05:53
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Jul 8, 2024
Upstream pull request: arthurdejong/nss-pam-ldapd#68

Closes: https://bugs.gentoo.org/832002
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
Closes: #37304
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
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