[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: libsvn_swig_* libraries

From: Daniel Rall <dlr_at_collab.net>
Date: 2006-03-22 03:51:08 CET

On Tue, 21 Mar 2006, Sviatoslav Sviridov wrote:

> David James wrote on 3/20/2006 8:53 PM:
> > On 3/20/06, Sviatoslav Sviridov <svd@altlinux.ru> wrote:
> >> I'd like to ask what libsvn_swig_* libraries are? Are they intended to
> >> be used _only_ from corresponding swig bindings or are there possible
> >> usage scenarios from other libraries/programs?
> >
> > These libraries are only intended to be used from the corresponding
> > SWIG bindings.
>
> Thanks!
>
> Could someone give a hint what is the best way to add -rpath linker
> option for swig bindings? I mean is it possible to do it without
> patching Makefile/whatever-else of what should I change?

The Makefile says:

# special compilation for files destined for libsvn_swig_* (e.g. swigutil_*.c)
COMPILE_SWIG_PY = $(LIBTOOL) $(LTFLAGS) --mode=compile $(SWIG_PY_COMPILE) $(CPPFLAGS) -DSWIGPYTHON $(CFLAGS) $(SWIG_PY_INCLUDES) $(INCLUDES) -o $@ -c
COMPILE_SWIG_PL = $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) $(SWIG_PL_INCLUDES) $(INCLUDES) -o $@ -c
COMPILE_SWIG_RB = $(LIBTOOL) $(LTFLAGS) --mode=compile $(SWIG_RB_COMPILE) $(CPPFLAGS) $(CFLAGS) $(SWIG_RB_INCLUDES) $(INCLUDES) -o $@ -c

...and:

# these commands link the wrapper objects into an extension library/module
LINK_PY_WRAPPER = $(LIBTOOL) $(LTFLAGS) --mode=link $(SWIG_PY_LINK) $(SWIG_LDFLAGS) -rpath $(swig_pydir) -avoid-version -module
LINK_RB_WRAPPER = $(LIBTOOL) $(LTFLAGS) --mode=link $(SWIG_RB_LINK) $(SWIG_LDFLAGS) -rpath $(swig_rbdir) -avoid-version -module

Perhaps supply an alternate LINK_PY_WRAPPER at 'make'-time?

-- 
Daniel Rall

  • application/pgp-signature attachment: stored
Received on Wed Mar 22 03:42:24 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.