Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jun 2004 12:52:42 +0200
From:      Michael Nottebrock <michaelnottebrock@gmx.net>
To:        freebsd-ports@freebsd.org
Cc:        Oliver Eikemeier <eikemeier@fillmore-labs.com>
Subject:   Re: respect CFLAGS: should I override optimizations?
Message-ID:  <200406011252.46470.michaelnottebrock@gmx.net>
In-Reply-To: <40BC3F1F.8080207@fillmore-labs.com>
References:  <20040531233106.GE85902@isis.wad.cz> <20040601082203.GA17296@isis.wad.cz> <40BC3F1F.8080207@fillmore-labs.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Boundary-02=_+/FvAIjB+Bh163g
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Tuesday 01 June 2004 10:32, Oliver Eikemeier wrote:

> It depends whether you consider `-O3' to be needed by the port.
> Does it compile and run without?

Exactly. It's really an application bug to benevolently force optimizations=
=20
via clobbering CFLAGS, the flawed rationale is almost always "Many people=20
compile from source, yet many people have no clue about CFLAGS and their=20
compiler, I'll make sure they don't get "pessimized" stuff."

The authors of such software are usually not aware of how flaky those=20
'non-pessimizations' can be on platforms !=3D386. However, I personally ten=
d to=20
leave such optimization clobbering intact, if the software in question sets=
=20
them not only depending on the compiler (case "$GCC"), but also on the=20
platform, i.e. has a case for each platform FreeBSD supports or only enable=
s=20
the optimizations for one single platform and sticks to verbatim CFLAGS=20
otherwise.

It might be actually worth a try to contact the developers and ask them to =
do=20
away with the CFLAGS clobbering in the upstream source.

=2D-=20
   ,_,   | Michael Nottebrock               | lofi@freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org

--Boundary-02=_+/FvAIjB+Bh163g
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAvF/+Xhc68WspdLARAqklAKCRVbi41EKpgenFY9HgKNCjCLs5QgCeKlvY
eO7QWdIzCFwW0k8n/qWz1e8=
=7AEJ
-----END PGP SIGNATURE-----

--Boundary-02=_+/FvAIjB+Bh163g--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406011252.46470.michaelnottebrock>