pkgsrc-Users archive

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

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



On Mon, Jul 08, 2013 at 04:25:34PM +0200, Dario Niedermann wrote:
> 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.

Where you hardcoded "-ldl" just use ${BUILDLINK_LIBS.dl}, move it
outside of the ifdef linux, and include
"../../mk/dlopen.buildlink3.mk" in the Makefile.
 Thomas


Home | Main Index | Thread Index | Old Index