Subject: Re: Re: CFLAGS and build.sh
To: None <segv@netctl.net>
From: Joel CARNAT <joel@carnat.net>
List: port-sparc64
Date: 10/27/2005 15:53:16
--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Oct 27 2005 - 14:38, segv@netctl.net wrote:
> On Thu, 27 Oct 2005 15:20:17 +0200
> Joel CARNAT <joel@carnat.net> wrote:
>=20
> > Hi,
> >=20
> > I have CFLAGS and friends set in /etc/mk.conf.
> > Everytime I use build.sh, I get the following kinds of errors :
>=20
> I think the way you set those flags is totally wrong!
>=20

OK :) I'll try your way.

> Here is how it should be done:
>=20
> _ACCEPTABLE=3Dyes
> DEPENDS_TARGET=3Dpackage
>=20
> # When doing 'build.sh release' it's safer to use -Os optimisation
> # With -O2 and higher, executables may not fit inside ramdisk image, etc
> KERNEL_CPUFLAGS=3D-mcpu=3Dultrasparc
> KERNEL_CFLAGS=3D-Os -pipe
>=20
> PKGSRC_CPUFLAGS=3D-mcpu=3Dultrasparc -mvis
> PKGSRC_CFLAGS=3D-O2 -pipe
>=20
> .ifdef BSD_PKG_MK
> COPTS+=3D${PKGSRC_CFLAGS} ${PKGSRC_CPUFLAGS}
> CFLAGS+=3D${PKGSRC_CFLAGS} ${PKGSRC_CPUFLAGS}
> CXXFLAGS+=3D${PKGSRC_CFLAGS} ${PKGSRC_CPUFLAGS}
> .else
> COPTS+=3D${KERNEL_CFLAGS}
> CPUFLAGS+=3D${KERNEL_CPUFLAGS}

is the last one CPUFLAGS+=3D or CFLAGS+=3D ?
I didn't ever see CPUFLAGS.

> .endif

--=20
,- This mail runs ------.
`--------- NetBSD/smtp -'

--8t9RHnE3ZwKMSgU+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFDYNvM0/VH7L7F7Y4RAoy3AJ9fI99+W79vX1SqdFoda+PlASq+zQCfTAjT
Hq/YpRvrycn8/r+0q31ieoY=
=BrBM
-----END PGP SIGNATURE-----

--8t9RHnE3ZwKMSgU+--