Re: [cross]compiling world and mk.conf

2023-11-08 Thread Ede Wolf
Am 08.11.23 um 20:14 schrieb Valery Ushakov: On Wed, Nov 08, 2023 at 13:07:09 +0100, Martin Husemann wrote: Alternatively you can use conditionals in mk.conf, like: .if ${MACHINE} == "sparc" CFLAGS+= -mcpu=v8 -mtune=supersparc .endif *tsk tsk*... :) CPUFLAGS = -mcpu=v8 -mtune=...

Re: [cross]compiling world and mk.conf

2023-11-08 Thread Valery Ushakov
On Wed, Nov 08, 2023 at 13:07:09 +0100, Martin Husemann wrote: > Alternatively you can use conditionals in mk.conf, like: > > .if ${MACHINE} == "sparc" > CFLAGS+= -mcpu=v8 -mtune=supersparc > .endif *tsk tsk*... :) CPUFLAGS = -mcpu=v8 -mtune=... please. > .if ${MACHINE_ARCH} != shark >

Re: [cross]compiling world and mk.conf

2023-11-08 Thread Ede Wolf
Am 08.11.23 um 13:20 schrieb Greg Troxel: Martin Husemann writes: Alternatively you can use conditionals in mk.conf, like: .if ${MACHINE} == "sparc" CFLAGS+= -mcpu=v8 -mtune=supersparc .endif or .if ${MACHINE_ARCH} != shark MKKDEBUG=yes .endif I would strongly recommend the .if method

Re: [cross]compiling world and mk.conf

2023-11-08 Thread Greg Troxel
Martin Husemann writes: > Alternatively you can use conditionals in mk.conf, like: > > .if ${MACHINE} == "sparc" > CFLAGS+= -mcpu=v8 -mtune=supersparc > .endif > > or > > .if ${MACHINE_ARCH} != shark > MKKDEBUG=yes > .endif I would strongly recommend the .if method and having one file. I

Re: [cross]compiling world and mk.conf

2023-11-08 Thread Martin Husemann
On Wed, Nov 08, 2023 at 01:02:12PM +0100, Ede Wolf wrote: > Hello, > > I am heading for my first cross compile, but reading chapter 33 or man > make/release, I am having one principal problem of understanding: > > Of course, if I have a central machine to cross compile for different hosts, > I

[cross]compiling world and mk.conf

2023-11-08 Thread Ede Wolf
Hello, I am heading for my first cross compile, but reading chapter 33 or man make/release, I am having one principal problem of understanding: Of course, if I have a central machine to cross compile for different hosts, I am having a different mk.conf for each remote host or host