Information PIC

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

Information PIC

Post by stephanmg » Mon May 19, 2014 10:58 am

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

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

Re: Information PIC

Post by hines » Tue May 20, 2014 9:15 pm

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

Post Reply