I think we need some code in templates/solaris to identify the compiler
and use -pthread for gcc and -mt for Sun's compiler.
Would you please try the attached patch and let us know how it works.
If it works, we can include it in 7.4.1.
---
Hi Peter,
You are right. I looked at the man page and it does not
have the -pthread option but the -mt option.
Perhaps there is a way to automate and detect which
one it has ?
I find in the man page that there is another option
-###, which is like -# but does not actually execute:
The followi
Seum-Lim Gan writes:
> I got the output from the cc verbose (-#).
> Looks like there is a "-hread" towards the end.
Apparently, your compiler does not understand the -pthread option. I've
read on the net that the Sun compiler options for thread-safety have
changed a few times, but I haven't foun
Hi Peter,
I got the output from the cc verbose (-#).
Looks like there is a "-hread" towards the end.
Thanks.
Gan
/opt/SUNWspro6.2/SUNWspro/bin/cc -# -Xa -G -h libecpg.so.4 execute.o
typename.o descriptor.o data.o error.o prepare.o memory.o connect.o
misc.o -L../../../../src/port -L../pgtypesli
Seum-Lim Gan writes:
> >make[4]: Entering directory
> >`/n/DBMS/edbteam/src/sol8/sparc64/postgresql-7.4/src/interfaces/ecpg/ecpglib'
> >/opt/SUNWspro6.2/SUNWspro/bin/cc -Xa -G -h libecpg.so.4 execute.o
> >typename.o descriptor.o data.o error.o prepare.o memory.o connect.o
> >misc.o -L../../../../s