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

perl bindings

From: Arkadiusz Miskiewicz <arekm_at_pld-linux.org>
Date: 2003-11-16 02:23:53 CET

Does this (proposed) change in build/ac-macros/swig.m4 look right

- SWIG_PL_INCLUDES="`$PERL -MExtUtils::Embed -e ccopts`"
+ SWIG_PL_INCLUDES="`$PERL -MExtUtils::Embed -e perl_inc`"

?

For me ccopts returns:
[misiek@arm ~]$ perl -MExtUtils::Embed -e ccopts
 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64
-I/usr/lib/perl5/5.8.0/athlon-pld-linux-thread-multi/CORE

and then swig complains about -fno-strict-aliasing option.

Anyway ccopts are not to be used as INCLUDES.

Also...

With this change + Makefile.in changes
-SWIG_PL_INCLUDES = @SWIG_PL_INCLUDES@
+SWIG_PL_INCLUDES = @SWIG_PL_INCLUDES@
-I$(abs_srcdir)/subversion/bindings/swig/perl
 SWIG_PL_COMPILE = @SWIG_PL_COMPILE@
-SWIG_PL_LINK = @SWIG_PL_LINK@
+SWIG_PL_LINK = @SWIG_PL_LINK@ -L$(top_builddir)/../.libs

and using:
(cd subversion/bindings/swig/perl && env APR_CONFIG="%{_bindir}/apr-config"
%{__perl} Makefile.PL)
%{__make} -C subversion/bindings/swig/perl ra_plugin.hi ra_reporter.hi
delta_editor.hi
%{__make} swig-pl

I'm able to get perl bindings built but of course make install-swig-pl fails
about libtool relinking issues.

-- 
Arkadiusz Mi¶kiewicz    CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Nov 16 10:35:44 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.