Skip to content

Conversation

@mikelolasagasti
Copy link

The previous logic for detecting libspf2 temporarily modified the CFLAGS and LDFLAGS shell variables. While this was sufficient for the internal AC_SEARCH_LIBS check to pass, these modifications were not propagated into the final generated Makefiles.

This caused build failures in strict environments (e.g., Fedora/EPEL rpmbuild) where CFLAGS is pre-populated with distribution-wide policies. The script's changes were lost, leading to compiler errors like "spf.h: No such file or directory" during the make stage.

This commit fixes the issue by appending the SPF include and library paths to the standard CPPFLAGS and LDFLAGS variables, respectively.

This commit is required for recent Fedora versions to build.

The previous logic for detecting libspf2 temporarily modified the CFLAGS
and LDFLAGS shell variables. While this was sufficient for the internal
AC_SEARCH_LIBS check to pass, these modifications were not propagated
into the final generated Makefiles.

This caused build failures in strict environments (e.g., Fedora/EPEL
rpmbuild) where CFLAGS is pre-populated with distribution-wide policies.
The script's changes were lost, leading to compiler errors like
"spf.h: No such file or directory" during the `make` stage.

This commit fixes the issue by appending the SPF include and library
paths to the standard `CPPFLAGS` and `LDFLAGS` variables, respectively.

Signed-off-by: Mikel Olasagasti Uranga <[email protected]>
@mikelolasagasti mikelolasagasti changed the base branch from master to develop September 30, 2025 14:33
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