From owner-freebsd-current Fri Jun 14 8:54:57 2002 Delivered-To: freebsd-current@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 497EE37B404 for ; Fri, 14 Jun 2002 08:54:53 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1920) id 20460AE160; Fri, 14 Jun 2002 08:54:53 -0700 (PDT) Date: Fri, 14 Jun 2002 08:54:53 -0700 From: Maxime Henrion To: current@FreeBSD.org Subject: duplicate -ffreestanding in kernel build Message-ID: <20020614155452.GM85244@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, I recently noticed that we are adding the -ffreestanding flag twice for kernel builds. It's added once if GCC3 is defined in /usr/share/mk/bsd.kern.mk and another time inconditionally in /sys/conf/kern.pre.mk. As a result, I have -ffreestanding once on my x86 box still running with GCC 2.95 and I have it twice on my sparc box running GCC 3. One of these should be removed, but I'm not sure which one yet. Keeping it in kern.pre.mk has the advantage that it will work even if someone is using a staled bsd.kern.mk. Also, I wonder if it should be conditional on GCC3 being defined since we were adding it inconditionally there. Any thoughts? Thanks, Maxime To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message