This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help with HPUX 10.20 and egcs
- Subject: Re: Help with HPUX 10.20 and egcs
- From: Doug Semler <doug at seaspace dot com>
- Date: Fri, 26 Mar 1999 18:44:31 -0800
- cc: ctrown at csuchico dot edu, egcs at egcs dot cygnus dot com
> > 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 :)