Re: PIC questions

2006-10-31 Thread Kostik Belousov
On Tue, Oct 31, 2006 at 12:26:31PM +0400, Michael Bushkov wrote: > Hi, > I've got 2 questions about PIC. > > 2. And theoretical question. Does every object that will be linked into the > shared library should be built with PIC enabled? This is not so theoretical. This is required, for instance, f

PIC questions

2006-10-31 Thread Michael Bushkov
Hi, I've got 2 questions about PIC. 1. NO_PIC variable. It is defined in several places across the system sources. As an example: ./lib/libcompat/Makefile:NO_PIC= ./lib/libdisk/Makefile:NO_PIC= ./lib/libstand/Makefile:NO_PIC= ./lib/liby/Makefile:NO_PIC= What are the reasons for explicitly settin