[Pkg-octave-devel] SWIG
Thomas Weber
thomas.weber.mail at gmail.com
Mon May 12 18:50:24 UTC 2008
On 12/05/08 11:59 +0200, Ólafur Jens Sigurðsson wrote:
> On Mon, May 12, 2008 at 03:08:15AM +0200, Rafael Laboissiere wrote:
> > * Ólafur Jens Sigurðsson <ojsbug at gmail.com> [2008-05-12 01:58]:
> >
> > > [...] I tried to install the ann package on my system and it installed fine
> > > without me having SWIG installed.
> >
> > I cannot build the package without applying the patch below. Is this the
> > case for yout, too?
> >
> > --- octave-ann-1.0.orig/src/ann/Make-config
> > +++ octave-ann-1.0/src/ann/Make-config
> > @@ -72,7 +72,7 @@
> > $(MAKE) targets \
> > "ANNLIB = libANN.a" \
> > "C++ = g++" \
> > - "CFLAGS = -O3" \
> > + "CFLAGS = -O3 -fPIC" \
> > "MAKELIB = ar ruv" \
> > "RANLIB = true"
>
> Nope, builds fine for me without the patch.
>
> It should not be an issue since all -fPIC does is create
> position-independent code (PIC) which should be an option, not a
> requirement right?
'On certain architectures (AMD64 amongst them), shared libraries *must*
be "PIC-enabled".'
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3
Debian policy:
http://www.debian.org/doc/debian-policy/ch-files.html#s-libraries
That said, calling flags for the C++ compiler 'CFLAGS' is quite eh
'uncommon'. And frankly, people should stop hard-coding that stuff and
ask octave-config for it. That's what the script is for.
Bonus points for people compiling the above with a self-compiled C++
compiler under their $HOME.
Thomas
More information about the Pkg-octave-devel
mailing list