Skip to content

Conversation

@asiekierka
Copy link
Contributor

No description provided.

@asiekierka asiekierka force-pushed the feature/fix-blocksds-1-11-1 branch 2 times, most recently from 4804140 to d57860d Compare June 23, 2025 18:01
@asiekierka asiekierka force-pushed the feature/fix-blocksds-1-11-1 branch from d57860d to c285f58 Compare June 25, 2025 05:04
@AliceLR AliceLR merged commit 0a20775 into AliceLR:master Jun 25, 2025
18 checks passed
AliceLR added a commit that referenced this pull request Jun 25, 2025
Initializing ARCH_CXXFLAGS with ARCH_CFLAGS is potentially harmful,
as these variables are almost always initialized with recursive
expansion appends. If ARCH_CXXFLAGS is assigned in this manner,
adding an option like -std=gnu99 to ARCH_CFLAGS will propagate to
ARCH_CXXFLAGS even if it's added to ARCH_CFLAGS after initializing
ARCH_CXXFLAGS, causing compiler warnings or errors.

Instead, either initialize ARCH_CFLAGS and ARCH_CXXFLAGS identically
(or near-identically), or prefer setting an arch-specific variable like
NDS_CFLAGS for common options which can then be appended to both.

See discussion on #571:
#571 (comment)
AliceLR added a commit that referenced this pull request Jun 28, 2025
Initializing ARCH_CXXFLAGS with ARCH_CFLAGS is potentially harmful,
as these variables are almost always initialized with recursive
expansion appends. If ARCH_CXXFLAGS is assigned in this manner,
adding an option like -std=gnu99 to ARCH_CFLAGS will propagate to
ARCH_CXXFLAGS even if it's added to ARCH_CFLAGS after initializing
ARCH_CXXFLAGS, causing compiler warnings or errors.

Instead, either initialize ARCH_CFLAGS and ARCH_CXXFLAGS identically
(or near-identically), or prefer setting an arch-specific variable like
NDS_CFLAGS for common options which can then be appended to both.

See discussion on #571:
#571 (comment)
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.

2 participants