tech-pkg archive

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

Re: TOOL_DEPENDS



On Wed, Jul 31, 2024 at 03:41:20PM +0100, Robert Swindells wrote:
> 
> Thomas Klausner <wiz%gatalith.at@localhost> wrote:
> >On Wed, Jul 31, 2024 at 02:55:21PM +0100, Robert Swindells wrote:
> >> Adding lang/ecl/buildlink3.mk to the lang/sbcl Makefile gets past this
> >> point but it then can't find the library for devel/libffi.
> >
> > That looks like a bug in ecl/buildlink3.mk, try the attached diff.
> 
> Thanks, with this we can remove the explicit reference to devel/libffi
> from math/{fricas,maxima,openaxiom}.

Thanks, I've committed this, please commit the cleanups.

> It doesn't solve my problem though.
> 
> How do I get to use lang/ecl just as a build time tool for lang/sbcl?
>
> ECL generates C source then compiles that with the system compiler, it
> is gcc that fails to find /usr/pkg/include/ecl/ecl-cmp.h if I don't
> include lang/ecl/buildlink3.mk in lang/sbcl/Makefile. This makes
> lang/sbcl depend on lang/ecl at runtime, which isn't needed.

Since ecl needs compiler support, the headers and libraries need to be
buildlink'ed in, so do that (include its buildlink3.mk file). But
since ecl's not needed at runtime (no shared libraries, right?) you
can set

BUILDLINK_DEPMETHOD.ecl=build

in the package including ecl/buildlink3.mk, before including that
bl3.mk file.
 Thomas


Home | Main Index | Thread Index | Old Index