From owner-freebsd-questions@FreeBSD.ORG Fri Dec 15 22:49:35 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C775716A632 for ; Fri, 15 Dec 2006 22:49:35 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.t-hosting.hu (server.t-hosting.hu [217.20.133.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC69043CED for ; Fri, 15 Dec 2006 22:46:24 +0000 (GMT) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id 92A669ACB70; Fri, 15 Dec 2006 23:48:05 +0100 (CET) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SwOtjnk36ZCu; Fri, 15 Dec 2006 23:48:01 +0100 (CET) Received: from [192.168.2.186] (catv-50635cb6.catv.broadband.hu [80.99.92.182]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.t-hosting.hu (Postfix) with ESMTP id BE0329ACB6C; Fri, 15 Dec 2006 23:48:01 +0100 (CET) Message-ID: <4583261A.9000103@FreeBSD.org> Date: Fri, 15 Dec 2006 23:47:54 +0100 From: Gabor Kovesdan User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Michael Grant References: <62b856460612151403l3839c75fj6c3248919a2784ce@mail.gmail.com> In-Reply-To: <62b856460612151403l3839c75fj6c3248919a2784ce@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: compiling a port unstripped for debugging X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2006 22:49:36 -0000 Michael Grant schrieb: > Can someone please tell me if there is an easy way to compile and > install a port without stripping it (i.e. compiling it with -g and not > running strip when it's installed)? > > Michael Grant > You can set STRIP and STRIP_CMD to empty for not stripping the binaries and add -g to CFLAGS. E.g. make STRIP="" STRIP_CMD="" CFLAGS+=-g install This should work for you. You can also place these to /etc/make.conf if you want to use this every time. Cheers, Gabor