Geia sou Manoli,
On Tue, Oct 14, 2003 at 09:31:34PM +0300, Emm Vasilakis wrote:
> I've created an /etc/mk.conf file and have the following lines:
>
> M68040=YES
> COPTS+=-O2
> CFLAGS+=-m68040
>
> I would expect to have a -m68040 parameter in cc, but I'm watching it
> compile my kernel with:
>
> cc -m68040 -m68060 -m68030 -m68851 (it also has -msoft-float on some
> files)
>
> which seems strange.
>
> Does make override the settings in mk.conf, doesnt it work for kernel
> compiles, or am I missing something else here? Is it that the += just
> adds the setting to the defaults?
thats correct, but...
> What is the best CFLAGS and COPTS parameters I should have for a 040
> system?
Don't touch them directly in mk.conf. If you want them there for pkgsrc
builds (and you still might get problems for some packages...), put them
inside a #ifdef that will hide them from the kernel compilation.
Instead, use
options M68040
options FPSP
in your kernel configuration file.
This should also switch on allowed optimizations.
Everything else will create desaster - e.g., all the kernel must be
compiled with -msoft-float, as we don't keep a seperate FPU state for
the kernel!
Regards,
Ignatios
--
seal your e-mail: http://www.gnupg.org/
Attachment:
pgprEjR6QWsW8.pgp
Description: PGP signature