News for hackers. Stuff that matters.
Re:Cross-compiling binaries for Windows is easier than build... by dataflow on Saturday June 18, 2022 @06:58PM (#31794561)
Yes, "simply". It's a very fun process. Around 100 times more fun than the onerous

  git config --global core.symlinks true
Re:Cross-compiling binaries for Windows is easier than build... by andrewmcwatters on Saturday June 18, 2022 @07:08PM (#31794637)
Anyone who talks nonchalantly about glibc hasn't had their time eaten up by glibc.
Re:Cross-compiling binaries for Windows is easier than build... by Spivak on Saturday June 18, 2022 @07:23PM (#31794720)
Like it’s absolutely a nightmare but you can eliminate a lot of problems by building on an ancient version of RHEL.
Re:Cross-compiling binaries for Windows is easier than build... by jeroenhd on Sunday June 19, 2022 @02:54AM (#31796866)
It says a lot about Linux development that for cases like these "just install the Linux equivalent of Windows XP in a container and run the tools inside that" is an accepted solution.

It's a solution that works well and is used by loads of developers, but it's still comically silly.

Re:Cross-compiling binaries for Windows is easier than build... by account42 on Tuesday June 21, 2022 @04:33AM (#31821674)
There are other approaches like https://github.com/wheybags/glibc_version_header or sysroots with older glibc, e.g. https://wiki.gentoo.org/wiki/Crossdev - you don't need your whole XP, just the the system libs to link against.

Sure, having a nice SDK where you can just specify the minimum vesion you want to support would be nice but who do you expect to develop such an SDK? GNU/glibc maintainers? They would rather you ship as source. Red Hat / SUSE / Canonical? They want you to target only their distro. Valve? They decided its easier to just provide an unchaning set of libraries since they need to support existing games that got things wrong anyway and already have a distribution platform to distribute such a base system along with the games without bundling it into every single one.

Re:Cross-compiling binaries for Windows is easier than build... by rkeene2 on Sunday June 19, 2022 @12:00PM (#31800543)
You can also just cross-compile targeting whatever you want, including RHEL.

I wrote a tool [0] which will take any system and create a cross-compiler toolchain for it, this is what I use to compile for Linux, HP-UX, Solaris, BSD, etc on Linux.

[0] https://build-cc.rkeene.org/

Re:Cross-compiling binaries for Windows is easier than build... by andrewmcwatters on Sunday June 19, 2022 @03:57PM (#31802807)
I actually haven’t heard of this approach. Could you explain more or point me to some further reading if you read this and have a moment?