From owner-freebsd-mozilla Tue Jan 16 0: 3:32 2001 Delivered-To: freebsd-mozilla@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id 0F98B37B400; Tue, 16 Jan 2001 00:03:14 -0800 (PST) Received: from medusa.kfu.com (medusa.kfu.com [205.178.90.222]) by quack.kfu.com (8.11.1/8.11.1) with ESMTP id f0G83D724215; Tue, 16 Jan 2001 00:03:13 -0800 (PST) (envelope-from nsayer@quack.kfu.com) Received: from quack.kfu.com (icarus.kfu.com [205.178.90.254]) by medusa.kfu.com (8.11.1/8.11.0) with ESMTP id f0G83DP18446; Tue, 16 Jan 2001 00:03:13 -0800 (PST) (envelope-from nsayer@quack.kfu.com) Message-ID: <3A640041.1080706@quack.kfu.com> Date: Tue, 16 Jan 2001 00:03:13 -0800 From: Nick Sayer User-Agent: Mozilla/5.0 (X11; U; FreeBSD 5.0-CURRENT i386; en-US; 0.7) Gecko/20010115 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-ports@freebsd.org, freebsd-mozilla@freebsd.org Subject: More on mozilla PSM build Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mozilla@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I guess I spoke too soon. My previous solution works only if you leave the port in place. This is because psm has hard-coded paths to shared library dependencies because of the fact that dependent .so files are mentioned by full path in the link line. The solution to this one is to look for the section of the Makefile in security/psm/server that sets a Solaris and an everything-else alternative for setting NSPR_LIBS. You'll see the Solaris one says something like -L$(DIST)/lib -lnspr4 -lpldc4 blah blah and the non-solaris alternative references something else. Switching to the Solaris semantics fixes the problem. Here's what it looked like when I got done: ifeq ($(OS_ARCH), SunOS) NSPR_LINK_LIBS = -L$(DIST)/lib -Bdynamic -lnspr4 -lplc4 -lplds4 XPCOM_LINK_LIBS = -lxpcom XPCOM_LIBS += $(DIST)/lib/libz.$(DLL_SUFFIX) else NSPR_LINK_LIBS = -L$(DIST)/lib -lnspr4 -lplc4 -lplds4 XPCOM_LINK_LIBS = -lxpcom endif So I guess it would also work to do the first choice if it's SunOS or FreeBSD. I couldn't figure out the gmake syntax for that, though. So now I have a working psm build of mozilla that works even with a make clean in the port dir! :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mozilla" in the body of the message