[parisc-linux] userland test failure
chester@linux.org.tw
chester@linux.org.tw
Thu, 29 Jun 2000 11:28:26 +0800 (CST)
Hello ,
I have build the basic environment ,gcc, bintuils and glibc.
I download it from CVS ,and it builds very smooth.
(Thanks for your hack)
But when i compile a test program on it,i got some error:
-------(hello.c)
int main(void)
{
printf("hello world");
return 1;
}
--------
When i use hppa1.1-linux-gcc -g -o hello hello.c,it's fine.
(file hello ==>
hello :ELF 32-bit MSB executable,PA-RISC, version 1,statically linked ,not
stripped)
But if i add -fPIC options,get
/tmp/cc4QxRpc.o : In function 'main'
/mnt/download/PA/hello.c:3: undefined reference to `$global$`
defaulting out
collect2: ld returned 1 exit status
BTW,i using this configure to configur my glibc,
./configure --preifix=/mnt/download/PA/pa-cross --disable-nls
--disable-sanity-checks --disable-shared --host=hppa1.1-linux
--target=hppa1.1-linux --build=i386-linux
--with-headers=/mnt/download/PA=pa-cross --without-nls --disable-profile
Is --disable-shared effect???
Thanks,
Chester