From owner-freebsd-ports Mon Apr 15 11:47: 1 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mail.tgd.net (mail.tgd.net [209.81.25.10]) by hub.freebsd.org (Postfix) with ESMTP id 44F3A37B43F for ; Mon, 15 Apr 2002 11:46:32 -0700 (PDT) Received: by mail.tgd.net (Postfix, from userid 1001) id 3191B20F0A; Mon, 15 Apr 2002 11:46:32 -0700 (PDT) Date: Mon, 15 Apr 2002 11:46:32 -0700 From: Sean Chittenden To: Oliver Braun Cc: ports@freebsd.org Subject: Re: [Maintainer Question] How to handle this? net/rsync core dump solution Message-ID: <20020415114631.E67242@ninja1.internal> References: <20020415115431.GA8405@nemesis.informatik.unibw-muenchen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020415115431.GA8405@nemesis.informatik.unibw-muenchen.de>; from "obraun@informatik.unibw-muenchen.de" on Mon, Apr 15, 2002 at = 01:54:31PM X-PGP-Key: 0x1EDDFAAD X-PGP-Fingerprint: C665 A17F 9A56 286C 5CFB 1DEA 9F4F 5CEF 1EDD FAAD X-Web-Homepage: http://sean.chittenden.org/ Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > PR 36998 reports a problem with net/rsync > -z option core dumps on large files > > I could reproduce this error. The problem does not occur if you install > manually from source. > > The solution on my boxes was to add -O2 to ${CFLAGS}. With -O it does > not work. Without respection system wide CFLAGS rsync uses -O2. > > But how could I handle this in the port? > > Add > CFLAGS+= -O2 > to the Makefile? > > Any other ideas? That's correct. The only thin you have to worry about is if someone has -O6 or some other optimization specified in their /etc/make.conf. I don't know if gcc does the "right thing" or even what that behavior is. <:~) What if they've explicitly specified a -O? Will it use the lowest specified optimization? ::shrug:: If you could somehow nuke the -O*'s then append -O2 that'd probably be the most correct solution. -sc -- Sean Chittenden To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message