Subject: Re: PIC option using gcc
To: YU SONG <cs_yus@cs4.lamar.edu>
From: Neil Brendan Clark <nbc@vulture.dmem.strath.ac.uk>
List: port-amiga
Date: 05/30/1996 13:19:24
YU SONG writes:
>What I understand is that NetBSD architecture supports dynamic linking
>objects. And since NetBSD is built up by gcc, I assume gcc with option of
>either -fpic or -fPIC works.
Sure does.
>However when I build program using -fpic
>option, the ld warns me of undefined symbol "_GLOBAL_OFFSET_TABLE_".
Can't remember this happening to me. The way I do it is like this;
gcc -c -fpic library.c
ld -Bshareable -o library.so library.o
Neil