Information PIC

Anything that doesn't fit elsewhere.
Post Reply
Posts: 68
Joined: Tue Jul 03, 2012 4:40 am

Information PIC

Post 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.

Site Admin
Posts: 1600
Joined: Wed May 18, 2005 3:32 pm

Re: Information PIC

Post 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

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