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

[PATCH] gen_base.py should not generate reference to nonexistent library swigjava

From: Kai Nacke <kai.nacke_at_redstar.de>
Date: 2003-02-06 16:07:14 CET

Hi all!

I am playing around with SWIG 1.3.17 and the java bindings for subversion. I
noticed that the build system tries to link with the external library libswigjava.
But there is no such runtime library. (SWIG comes with libraries for Python,
Tcl, Ruby and so on, but not for java.)

This patch fixes the gen_base.py script.

* build/gen_base.py
   (TargetSWIG.add_dependencies) Dependency to SWIG runtime library will
   only be added if target language is not java.

Index: build/gen_base.py
===================================================================
--- build/gen_base.py (revision 4764)
+++ build/gen_base.py (working copy)
@@ -520,7 +520,8 @@

       # add some language-specific libraries
       ### fix this. get these from the .conf file
- graph.add(DT_LINK, library, ExternalLibrary('-lswig' + abbrev))
+ if abbrev <> 'java':
+ graph.add(DT_LINK, library, ExternalLibrary('-lswig' + abbrev))
       ### fix this, too. find the right Target swigutil lib. we know there
       ### will be only one.
       util = graph.get_sources(DT_INSTALL, 'swig-%s-lib' % abbrev)[0]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 6 16:05:37 2003

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.