From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 5 05:28:45 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFEAE106566B for ; Fri, 5 Mar 2010 05:28:45 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-exrelay1.uni-muenster.de (ZIVM-EXRELAY1.UNI-MUENSTER.DE [128.176.192.14]) by mx1.freebsd.org (Postfix) with ESMTP id 444FC8FC19 for ; Fri, 5 Mar 2010 05:28:44 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.49,585,1262559600"; d="scan'208";a="298279738" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER01.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay1.uni-muenster.de with ESMTP; 05 Mar 2010 06:28:40 +0100 Received: by ZIVMAILUSER01.UNI-MUENSTER.DE (Postfix, from userid 149459) id 5FA151B0768; Fri, 5 Mar 2010 06:28:40 +0100 (CET) Date: Fri, 05 Mar 2010 06:28:39 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: building world with debugging symbols X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2010 05:28:45 -0000 hi there, because i'm doing a lot of debugging lately i thought it might be a good idea to build world (in addition to the kernel) with debugging symbols. what i've done is add CFLAGS+= -O2 -fno-strict-aliasing -pipe -g to /etc/src.conf, because having -g in CFLAGS in /etc/make.conf would also build everything else (ports e.g.) with debugging symbols which i don't really need/want. make buildworld however fails due to the fact that building the bootloader with -g exceeds the allowed maximum bootloader size by 545 bytes. any suggestions on how to successfully build world with debugging symbols are welcome. cheers. alex