From owner-freebsd-java Mon Aug 20 17:13:11 2001 Delivered-To: freebsd-java@freebsd.org Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202]) by hub.freebsd.org (Postfix) with ESMTP id 1389F37B405 for ; Mon, 20 Aug 2001 17:13:08 -0700 (PDT) (envelope-from glewis@misty.eyesbeyond.com) Received: from [166.70.6.178] (helo=misty.eyesbeyond.com) by mgr2.xmission.com with esmtp (Exim 3.22 #1) id 15YzAH-00049K-00; Mon, 20 Aug 2001 18:13:06 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.3/8.11.3) id f7L0D2R12924; Tue, 21 Aug 2001 09:43:02 +0930 (CST) (envelope-from glewis) Date: Tue, 21 Aug 2001 09:43:01 +0930 From: Greg Lewis To: Carlo Dapor Cc: freebsd-java@FreeBSD.ORG Subject: Re: SOLVED: Successful JDK 1.3.1 build with little modification Message-ID: <20010821094301.A12799@misty.eyesbeyond.com> References: <20010820151823.C014F275B6@naboo.ethz.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010820151823.C014F275B6@naboo.ethz.ch>; from carlo@vis.ethz.ch on Mon, Aug 20, 2001 at 05:18:23PM +0200 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Aug 20, 2001 at 05:18:23PM +0200, Carlo Dapor wrote: > Just wanted to let You know that I was able to build the JDK 1.3.1, without > the weird setup I posted previously. > > That's right, not more INSANE or LINK.{c,cc} or the like. > It turns out that just uncommenting '-z defs' in make/common/Defs-bsd.mk does > all the magic for me. Also, as Greg has mentioned earlier, the generation of > invokers.c does not require any hack anymore. > > The lines around 240 in make/common/Defs-bsd.mk lok like this now: > > fneq ($(LIBRARY),JdbcOdbc) > ifneq ($(ARCH),ppc) > LDFLAGS_COMMON = #-z defs > endif # LIBRARY > endif # ARCH > > Is my Current shaky, or is anyone else having similar symptoms on Current ? Well, whatever the reason, I've just completely pulled these lines from Defs-bsd.gmk. > PS: The man pages for gcc mention that '-z defs' is meant to silence warnings > of unresolved symbols if switched on. But there seems to be more to it, > both system gcc (2.95.1) and most recent gcc (3.0) have the exact same > behaviour for me when building the JDK. Hmmm, I think the man pages may be out of date. This is an ld flag rather than a gcc flag, so gcc version isn't relevant. The info documents on 4.3 (binutils 2.10.1) say: `-z KEYWORD' This option is ignored for Solaris compatibility. So, it should have effectively been a no-op on FreeBSD. Whether it is or isn't, since the documentation I have says it has no effect I've gotten rid of it :). -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Phone : (801) 765 1887 Information Technology Web : http://www.eyesbeyond.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message