Re: Intermediate step for new arch for lc040 compatibility
David Brownlee <[email protected]> Fri, 25 Apr 2025 12:53:17 +0100
| Newsgroups | gmane.os.netbsd.ports.m68k |
|---|---|
| Message-ID | <CAGN_6pYDx=MB+ROGgBgTojTkNO3+pAWnrUiuSpWup8mF+VQGdw@mail.gmail.com> |
On Tue, 22 Apr 2025 at 02:57, Nathanial Sloss <[email protected]> wrote: > > Hi, > > Please see attached patch: > > I've found it very hard to set the -mlcfix flag for gas(1) depending on the > caller. If it's gcc its pretty easy to set CFLAGS but not necessarily for > other programmes. > > It was easier to make a toolchain where -mlcfix was the default ensuring > compatibility no matter which programme was calling gas(1). > > The attached patch will make a toolchain where by -mlcfix is the default if -V > MKLC040COMPAT is passed to build.sh. > > This is an intermediate step for a new arch where the flag can be set (say > m68klc). > > Best regards and thank you for your consideration, To clarify my understanding: This would not affect the default built binaries for any m68k port, but can be used by people to build a custom distribution with the workaround for defective LC040 chips? While it would only be useful for a tiny number of people, we're already into that territory with port-mac68k :), and it looks low maintenance, so LGTM David