Skip to content

Fix: build flags for dependencies #14038

Merged
minchopaskal merged 2 commits intoredis:unstablefrom
minchopaskal:fix-deps-build
May 13, 2025
Merged

Fix: build flags for dependencies #14038
minchopaskal merged 2 commits intoredis:unstablefrom
minchopaskal:fix-deps-build

Conversation

@minchopaskal
Copy link
Collaborator

PR #13916 introduced a regression - by overriding the CFLAGS and LDFLAGS variables for all of the dependencies hiredis and fast_float lost some of their compiler/linker flags.

This PR makes it so we can pass additional CFLAGS/LDFLAGS to hiredis, without overriding them as it contains a bit more complex Makefile. As for fast_float - passing CFLAGS/LDFLAGS from outside now doesn't break the expected behavior.

The build step in the CI was changed so that the MacOS is now build with TLS to catch such errors in the future.

@minchopaskal minchopaskal requested a review from sundb May 13, 2025 11:19
@sundb sundb requested a review from tezc May 13, 2025 11:58
@sundb
Copy link
Collaborator

sundb commented May 13, 2025

Copy link
Collaborator

@tezc tezc left a comment

Choose a reason for hiding this comment

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

LGTM! We don't have a similar problem for other dependencies right?

@minchopaskal
Copy link
Collaborator Author

LGTM! We don't have a similar problem for other dependencies right?

Yep, we don't pass DEPS_CFLAGS to jemalloc, also not directly to lua. As for the rest of the dependancies - their Makefiles are written in such a way that allows passing CFLAGS/LDFLAGS from outside

@minchopaskal minchopaskal merged commit 6995d8a into redis:unstable May 13, 2025
18 checks passed
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.

3 participants