[gmx-developers] Possible to compile gmxlib without any non-PIC code?

Erik Lindahl lindahl at sbc.su.se
Fri Oct 8 17:28:27 CEST 2004


Hi Nicholas,

I already fixed this in the development code when doing some other 
cleanup, so future versions should be fine.

Cheers,

Erik

On Oct 7, 2004, at 8:35 PM, Nicholas Breen wrote:

>   Even when compiled with -fPIC, libgmx.so still has some portions of
> non-PIC code left in it:
>
> % readelf -d libgmx.so|grep TEXTREL
>  0x00000016 (TEXTREL)                    0x0
>
>   It's from the i386 assembly code - compiling on a MIPS system or with
> --disable-x86-asm produces a library with no TEXTREL sections.  Is it
> possible to compile this in such a way that it's completely non-PIC
> without resorting to disabling the ASM optimizations?  My limited ASM
> knowledge is not up to the job.
>
>   (Admittedly, this doesn't *break* GROMACS in any way.  The reason I'm
> interested is in hopes of getting GROMACS into the Debian package
> archive.  PIC code in shared libraries violates their packaging 
> policy.)
>
>   Many thanks for any suggestions.
>
>
> --
> Nicholas Breen
> nbreen at ofb.net
> _______________________________________________
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-developers-request at gromacs.org.




More information about the gromacs.org_gmx-developers mailing list