Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 2003 18:31:42 +0300
From:      Sergei Kolobov <sergei@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: RFC: FreeBSD DB Port Reform
Message-ID:  <20031106153142.GA829@chetwood.ru>
In-Reply-To: <20031106141924.GA11241@merlin.emma.line.org>
References:  <m365hxoh65.fsf@merlin.emma.line.org> <3FAA3B77.7090002@fillmore-labs.com> <20031106141924.GA11241@merlin.emma.line.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031106153142.GA829>