Re: Intermediate step for new arch for lc040 compatibility
Nat Sloss <[email protected]> Sun, 27 Apr 2025 23:44:50 +1000
| Newsgroups | gmane.os.netbsd.ports.m68k |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 25 Apr 2025 21:53:17 David Brownlee wrote: > 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? That's correct. It does not affect the existing m68k ports. > > 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 Thanks. I'll wait another week to give others time to object. > > David Best regards, Nat