learning about building ports - please help

Scot Hetzel swhetzel at gmail.com
Fri Feb 9 15:01:45 UTC 2007


On 2/9/07, Csaba Molnar <molnarcs at gmail.com> wrote:
> While building this port, it errored out at an early stage with this message:
> libtool: link: cannot find the library `' gmake[2]: *** [kcm_beryl.la] Error 1
>
> Google turned up this solution:
> http://people.fruitsalad.org/lauri/krazykiwi/index.php?/archives/175-Libtool-nutso-insanity.html
>
> After editing libtool in work/aquamarine, it turned out that the problem lies
> with libkdefx.la. As suggested in the above blog post, I removed -pthread
> from the dependency_libs line of libkdefx.la (after making a backup of this

>
> Final question - I noticed these lines in the emerald Makefile:
>
> CONFIGURE_TARGET=       --build=${ARCH}-portbld-freebsd${OSREL}
> CONFIGURE_ARGS+=        --mandir="${PREFIX}/man"
> CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
>                 LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
>
> Do I need those? Can you refer me to further readings to help me understand
> the meaning of these lines (and whether I need similar lines or
> not). --mandir I understand (aquamarine doesn't have any manpages, so I'm
> usre I don't need that) - but the rest I don't.
>
The CONFIGURE_ENV sets the CPPFLAGS and the LDFLAGS that are passed to
the configure script.  The variable PTHREAD_LIBS has a value of
-pthread, which should solve your problem with libkdefx.la.

Scot
--
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.


More information about the freebsd-ports mailing list