Help with HPUX 10.20 and egcs
Doug Semler
doug@seaspace.com
Wed Mar 31 23:46:00 GMT 1999
> > LD_RUN_PATH="/usr/local/mysql/lib/mysql:/lib/pa1.1:/usr/local/lib/gcc-lib/h
> pp
> > a1.1-hp-hpux10.20/egcs-2.91.66" ld -o ../blib/arch/auto/DBD/mysql/mysql.sl
> -
> > b -L/usr/local/lib dbdimp.o mysql.o -L/usr/local/mysql/lib/mysql -L/usr/
> lo
> > cal/mysql/lib/mysql -lmysqlclient -lm -L/usr/local/lib/gcc-lib/hppa1.1-hp-h
> pu
> > x10.20/egcs-2.91.66 -lgcc
> >
>
> Did you try using gcc to create the shared library? eg:
>
> LD_RUN_PATH="/usr/local/mysql/lib/mysql:/lib/pa1.1" gcc -o mysql.sl -shared -
> L/usr/local/lib dbimp.o mysql.o -L/usr/local/mysql/lib/mysql -lmysqlclient -
> lm
>
> or something similar...
(oops)
1) forgot the -fPIC flag in the command line
2) not even sure this will work :)
More information about the Gcc
mailing list