pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [LINUX][PATCH] mMosaic needs additional lib



Thomas Klausner <wiz%NetBSD.org@localhost> wrote:

> On Mon, Jul 08, 2013 at 03:27:46PM +0200, Dario Niedermann wrote:
> > As per GNU ld suggestion upon failure, libdl is needed on Linux in
> > order to build www/mMosaic-3.7.2nb11. So the '-ldl' option needs to be
> > specified on cc's command line. The attached patch takes care of that.
> > 
> > According to mMosaic's own Makefile, the same is needed for: HP-UX,
> > BSD/386, FreeBSD, Solaris 2.x, only to mention OSes supported by pkgsrc.
> > But I don't know how up-to-date that info is, and I don't have those
> > systems to test on, so I only introduced the change for Linux.
>
> Can you modify the patch to use mk/dlopen.buildlink3.mk?
>
> I.e. including that and using ${BUILDLINK_LIBS.dl}?

I don't know much about buildlink, so I'm not sure how I would go about
that. One thing I've found is that if I include '-ldl' in $CFLAGS,
$CPPFLAGS or $LDFLAGS, it gets ignored by mMosaic's Makefile.

The only way to get '-ldl' into cc's command line was to pass it via
custom variable 'syslibs', that mMosaic's Makefile will read. Note that
pkgsrc's Makefile is already using this nonstandard mechanism with the
'sysconfigflags=' assignment.


Home | Main Index | Thread Index | Old Index