set fPIC option for librt

2008-09-11 Thread JACOB BENJAMIN-VGH684
Hello ppl, I am totally new to uClibc. I did search for my problem in the archives but could not really find a solution. My problem: I wrote a simple program : #include time.h #include stdio.h int main() { timer_t tid;

Re: set fPIC option for librt

2008-09-11 Thread Bernhard Reutner-Fischer
On Thu, Sep 11, 2008 at 07:32:09PM +0800, JACOB BENJAMIN-VGH684 wrote: Hello ppl, and ran the resultant a.out on a monta vista box I got an error saying something to the effect of Can't modify text section. Use GCC option -fPIC for shared objects, please. I looked into the config files and

Re: set fPIC option for librt

2008-09-11 Thread Carmelo AMOROSO
Bernhard Reutner-Fischer wrote: On Thu, Sep 11, 2008 at 07:32:09PM +0800, JACOB BENJAMIN-VGH684 wrote: Hello ppl, and ran the resultant a.out on a monta vista box I got an error saying something to the effect of Can't modify text section. Use GCC option -fPIC for shared objects, please. I

Re: set fPIC option for librt

2008-09-11 Thread Bernhard Reutner-Fischer
On Thu, Sep 11, 2008 at 02:13:07PM +0200, Carmelo AMOROSO wrote: Bernhard Reutner-Fischer wrote: On Thu, Sep 11, 2008 at 07:32:09PM +0800, JACOB BENJAMIN-VGH684 wrote: Now how and where do i make the config files to have fPIC set for the cross compiler?? I was under the impression that we

Re: set fPIC option for librt

2008-09-11 Thread Khem Raj
On (11/09/08 19:32), JACOB BENJAMIN-VGH684 wrote: Hello ppl, I am totally new to uClibc. I did search for my problem in the archives but could not really find a solution. My problem: I wrote a simple program : #include time.h #include stdio.h int main()