From owner-freebsd-ports@FreeBSD.ORG Thu Nov 6 07:32:04 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6151C16A4CF for ; Thu, 6 Nov 2003 07:32:04 -0800 (PST) Received: from outpost.globcon.net (outpost.globcon.net [62.141.88.161]) by mx1.FreeBSD.org (Postfix) with SMTP id 2FA9E4404E for ; Thu, 6 Nov 2003 07:32:00 -0800 (PST) (envelope-from sergei@FreeBSD.org) Received: (qmail 36517 invoked from network); 6 Nov 2003 15:31:52 -0000 Received: from agdcgw01.akingump.com (HELO kolobov.com) (12.40.174.2) by outpost.globcon.net (62.141.88.161) with SMTP; 06 Nov 2003 15:31:51 -0000 Received: (qmail 1416 invoked by uid 911); 6 Nov 2003 15:31:42 -0000 Date: Thu, 6 Nov 2003 18:31:42 +0300 From: Sergei Kolobov To: freebsd-ports@freebsd.org Message-ID: <20031106153142.GA829@chetwood.ru> Mail-Followup-To: freebsd-ports@freebsd.org References: <3FAA3B77.7090002@fillmore-labs.com> <20031106141924.GA11241@merlin.emma.line.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" Content-Disposition: inline In-Reply-To: <20031106141924.GA11241@merlin.emma.line.org> User-Agent: Mutt/1.5.3i Subject: Re: RFC: FreeBSD DB Port Reform X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2003 15:32:04 -0000 --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2003-11-06 at 15:19 +0100, Matthias Andree wrote: > We'd need some mechanism to allow applications (remember, they are > provided by third parties) continue to use -ldb, by just adding > LDFLAGS=3D-L/usr/local/BerkeleyDB-N.M/lib. Using LIBS=3D-ldb-4.1 doesn't > work universally. How about this instead,: CPPFLAGS+=3D -I${LOCALBASE}/include/db${BDB_VER} LDFLAGS+=3D -L${LOCALBASE}/lib/db{BDB_VER} CONFIGURE_ENV+=3D CPPFLAGS=3D"${CPPFLAGS}" LDFLAGS=3D"${LDFLAGS}" That way, third-party apps will link against -ldb,=20 and no patching will be required. As a bonus, db{3,4,41,...} ports will comply with hier(7). ;) Sergei --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/qmleFOxuaTulNAERAsKqAJ42OEOZ59+NM8WgfAsrnTUBPD4pzgCdE5P9 vKYtMOsmlNjvsTP6FAIYQ4U= =sLqN -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--