Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CXX_32 and CXX_64 variables in the makefiles #205

Merged
merged 1 commit into from
Mar 30, 2025

Conversation

Tachi107
Copy link
Contributor

Instead of explicitly passing -m32 and -m64 to the CXX invocation, define CXX_32 and CXX_64 as "CXX -m32" and "CXX -m64", respectively.

This allows easily using a cross GCC toolchain instead of GCC's multilib support, for example by defining CXX_32=i686-linux-gnu-gcc, and CXX_64=x86_64-linux-gnu-gcc.

See
https://lists.debian.org/msgid-search/[email protected] and related messages for some more context on why multilib (-m32 and -m64) might get removed from Debian in the future, in favour of cross compilers.

Instead of explicitly passing -m32 and -m64 to the CXX invocation,
define CXX_32 and CXX_64 as "CXX -m32" and "CXX -m64", respectively.

This allows easily using a cross GCC toolchain instead of GCC's multilib
support, for example by defining CXX_32=i686-linux-gnu-gcc, and
CXX_64=x86_64-linux-gnu-gcc.

See
<https://lists.debian.org/msgid-search/[email protected]>
and related messages for some more context on why multilib (-m32 and
-m64) might get removed from Debian in the future, in favour of cross
compilers.
@herumi
Copy link
Owner

herumi commented Mar 30, 2025

Thank you for your patch.

@herumi herumi merged commit 6c62a69 into herumi:master Mar 30, 2025
@Tachi107 Tachi107 deleted the fork-cxx_64_32 branch March 30, 2025 16:44
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