guile-user
[Top][All Lists]
Advanced

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

Re: debugging guile test failure and segfault.


From: Greg Troxel
Subject: Re: debugging guile test failure and segfault.
Date: Wed, 13 Jun 2007 09:05:55 -0400
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/21.4 (berkeley-unix)

address@hidden (Ludovic Courtès) writes:

> Greg Troxel <address@hidden> writes:
>
>> I think guile should have a .pc file for pkg-config and guile-config
>> should be deprecated eventually.  That's really orthogonal.
>
> Yeah, that's probably the way to go.  It's also more
> cross-compilation-friendly I think.

There's a huge advantage in being standard.  pkgsrc on NetBSD basically
has to add -R to lots of things.  There's support in pkgsrc for dealing
with this for pkgconfig that's very easy to use.

pkg-config also can be built as a host tool, which the cross-compile
framework would have to deal with only once.

example:

In pkgsrc/devel/at-spi/Makefile there is:

PKGCONFIG_OVERRIDE+=    cspi-1.0.pc.in
PKGCONFIG_OVERRIDE+=    libspi-1.0.pc.in

and pkgsrc/mk/configure/pkg-config-override.mk has code to sed the
platform-appropriate RPATH flags into the Libs: line:


# $NetBSD: pkg-config-override.mk,v 1.2 2006/07/10 16:12:20 jlam Exp $

######################################################################
### pkg-config-override (PRIVATE)
######################################################################
### pkg-config-override inserts the compiler's "rpath" flag into
### pkg-config data files so that ``pkg-config --ldflags <module>'' will
### return the full set of compiler flags needed to find libraries at
### run-time.
###
.PHONY: pkg-config-override
pkg-config-override:
        @${DO_NADA}

.if defined(_USE_RPATH) && !empty(_USE_RPATH:M[yY][eE][sS])
pkg-config-override: subst-pkgconfig

PKGCONFIG_OVERRIDE_SED= \
        '/^Libs:.*[     ]/s|-L\([       ]*[^    ]*\)|${COMPILER_RPATH_FLAG}\1 
-L\1|g'
PKGCONFIG_OVERRIDE_STAGE?=      pre-configure

SUBST_CLASSES+=                 pkgconfig
.  if ${PKGCONFIG_OVERRIDE_STAGE} == "pre-configure"
SUBST_STAGE.pkgconfig=          do-configure-pre-hook
.  elif ${PKGCONFIG_OVERRIDE_STAGE} == "post-configure"
SUBST_STAGE.pkgconfig=          do-configure-post-hook
.  else
SUBST_STAGE.pkgconfig=          ${PKGCONFIG_OVERRIDE_STAGE}
.  endif
SUBST_MESSAGE.pkgconfig=        Adding run-time search paths to pkg-config 
files.
SUBST_FILES.pkgconfig=          ${PKGCONFIG_OVERRIDE:S/^${WRKSRC}\///}
SUBST_SED.pkgconfig=            ${PKGCONFIG_OVERRIDE_SED}
.endif

Attachment: pgp7Oum4KlCGm.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]