I am trying to build the my project on HPUX (HP-UX oscar B.11.11 U 9000/800 741028561 unlimited-user license) which access the Mysql library. But it is giving error as :
Error : MySQL51/lib/hpux/libmysqld.a(client.o) - shared library must be position independent. Use +z or +Z to recompile.
I am using this option in building:
aCC -Wl,+s,-E,+vnocompatwarnings -z -g0 -b -Wl,-Bsymbolic.
I also tried using the +Z, +z, also added CFLAGS=-fPIC in makefile.Still it is giving error.
I have taken the mysql library from : mysql-5.1.34-hpux11.11-hppa2.0w.tar.gz
Can you please suggest the solution?