Hi!
I am not able to compile a shared library with a GCC 3.2 on a HP-UX 11.0
(parisc 1.1) .
$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/specs
Configured with: ./configure : (reconfigured) ./configure :
(reconfigured) ./configure : (reconfigured) ./configure :
(reconfigured) ./configure : (reconfigured) ./configure :
(reconfigured) ./configure : (reconfigured) ./configure :
(reconfigured) ./configure : (reconfigured) ./configure :
(reconfigured) ./configure
Thread model: posix
gcc version 3.2
$ cat test.c
int myFunct()
{
int i = 1;
return i++;
}
$ gcc -fPIC -c test.c
$ gcc -shared -o libtest.sl test.o
/usr/ccs/bin/ld: DP relative code in file /var/tmp//ccMDztre.o - shared
library must be position
independent. Use +z or +Z to recompile.
collect2: ld returned 1 exit status
What I am doing wrong? Thanks for your help.
Donatas