Subject: Re: Packages that use X, but not IMAKE, fail to find all libs
To: Frederick Bruckman <fb@enteract.com>
From: Todd Vierling <tv@pobox.com>
List: tech-pkg
Date: 11/14/1998 11:20:07
On Sat, 14 Nov 1998, Frederick Bruckman wrote:

: > In the Makefile of the pkg(s) that need it.  It's not good to insert lots of
: > "extra" stuff into CFLAGS and LDFLAGS by default.
: 
: Interestingly, CONFIGURE_ENV is already set in the Makefile, but the
: LDFLAGS definition there is overwritten by bsd.pkg.mk.

The setting in bsd.pkg.mk should make use of LDFLAGS from the Makefile, just
like CFLAGS does.  If so, the pkg Makefile should be setting LDFLAGS instead
of CONFIGURE_ENV.

: +CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
: +		CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include"

If this is after bsd.pkg.mk, it should be +=, NOT =.  The
-Wl,-R${PREFIX}/lib should always be there.

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)