From owner-freebsd-questions@FreeBSD.ORG Sun Feb 15 04:57:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 363A916A4CE for ; Sun, 15 Feb 2004 04:57:25 -0800 (PST) Received: from mcp.lphp.org (APastourelles-107-1-1-246.w80-13.abo.wanadoo.fr [80.13.78.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 744DD43D1F for ; Sun, 15 Feb 2004 04:57:24 -0800 (PST) (envelope-from ajacoutot@lphp.org) Received: from bsdbox.lphp.local (bsdbox.lphp.local [192.168.0.2]) by mcp.lphp.org (8.12.10/8.12.10) with ESMTP id i1FCvY0R006082 for ; Sun, 15 Feb 2004 13:57:34 +0100 (CET) (envelope-from ajacoutot@lphp.org) From: Antoine Jacoutot To: freebsd-questions@freebsd.org Date: Sun, 15 Feb 2004 13:57:37 +0100 User-Agent: KMail/1.6 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200402151357.37226.ajacoutot@lphp.org> Subject: make.conf CFLAGS and ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2004 12:57:25 -0000 Hi :) I was just wondering how CFLAGS were managed with make.conf and ports building. Indeed, today I just realized that what's in make.conf overwrite the default build for ports. I have this in my make.conf: CFLAGS= -O -pipe I though those were the right settings for building the world, but, I just realized while building kde-3.2 that the ports should build with -O2 (from the Mk or Makefile file I guess) but because of what I have in my make.conf, it builds like this: -O2 -O -pipe -march=pentium3, and since the last optimisation settings wins, kde-3.2 is build with: -O -pipe -march=pentium3. I suppose this is normal behaviour, but does this mean I have to comment CFLAGS everytime I build a port, so that it gets its default optimisation or is there another way ? My dream configuration would be: CFLAGS= -O -pipe for building the world CFLAGS= -O -pipe for building ports, EXCEPT if the Makefile and/or Mk build instructions give a higher optimisation setting. I hope this is understandable, my English is poor when coming to explain stuffs... Thanks for reading me. Regards, Antoine