From owner-freebsd-ports@FreeBSD.ORG Wed May 2 09:19:24 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5E90A16A400 for ; Wed, 2 May 2007 09:19:24 +0000 (UTC) (envelope-from thomas.e.zander@googlemail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id 218DE13C43E for ; Wed, 2 May 2007 09:19:24 +0000 (UTC) (envelope-from thomas.e.zander@googlemail.com) Received: by an-out-0708.google.com with SMTP id c24so66190ana for ; Wed, 02 May 2007 02:19:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=EQeBkTB4OZKnut8fPWjgAEjjpHcBO9tbvatf1gUY38eP46wotkrjdsipLyEOY/O5z2c8B6Tj1J5k/aer0kHVtbBO354pRvR0n1120QI6eOiXdzaYzT/hv4+tb23zSJmrU7VqRzWAH8phh7BKNOjAFv0+T4ZKs07xPdk02LvSLGs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=EwlQsD3iEmHgllFLPF/QUI+nq9XInaes22ngEUXuSkVssiNSe6f8yxNcnCrB38YnpPdK3MyjrCYd9/Jw5rTE1TnTkcdFclJhWF3I8MpNqDWsRW2lNvM7YyM8uw7ZZF3MhIfLvSrW+aQoi9U9SobjZLYI9sBkBmOhx5LgoBJBEHw= Received: by 10.100.247.11 with SMTP id u11mr281032anh.1178096062758; Wed, 02 May 2007 01:54:22 -0700 (PDT) Received: by 10.100.4.12 with HTTP; Wed, 2 May 2007 01:54:22 -0700 (PDT) Message-ID: <786602c60705020154k74b23dbkae585bf01a867f92@mail.gmail.com> Date: Wed, 2 May 2007 16:54:22 +0800 From: "Thomas Zander" To: ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Undefine WITH_DEBUG? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2007 09:19:24 -0000 Hi, I am trying to track down a problem with building mplayer with debug symbols. The problem is that this seems possible (at least on my machine) only if it is compiled with -O{1|2|3} -fomit-frame-pointer due to one of its incredibly smart inline-asm sections. Now, when using WITH_DEBUG in a port, "-O" expressions are stripped from the CFLAGS by the port build environment. The actual issue is that users who define WITH_DEBUG globally for their ports will probably run into this. Is there an elegant solution to circumvent this and undefine WITH_DEBUG? Riggs