Page 1 of 1

Information PIC

Posted: Mon May 19, 2014 10:58 am
by stephanmg
Dear Users,

i recognized, that in the NEURON 7.3 Sourcecode Snapshot, the --with-pic option isn't interpreted correctly, that means: not all shared objects (e. g. nvkludge.o) end up with PIC enabled!

This leads to complications, i. e. relocation R_X86_64_32 against "nvkludge.o" since -fPIC is missing.
Overriding in src/nrniv/ the Makefile manually by adding -fPIC to CFLAGS resolves this issue, though it should not be done this way.

Best,
Stephan

Re: Information PIC

Posted: Tue May 20, 2014 9:15 pm
by hines
I think I'm missing a lot of context. Was all this not handled by libtool on your machine? I've never needed -with-pic or ever used it.
Sure enough, I see that
$ ./configure --help
...
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
both]

I'll do some reading on the web about its purpose