On Tue, 03 Feb 2009, Maurilio Longo wrote: Hi Maurilio,
> > You have to enable compilation with relocatable code, f.e. use -fPIC or > > -fpic > > flag in C_USR. But I do not know it it's enough for OpenSolaris. The last > > tests I made with Solaris were done over two years ago. > yes, -fpic is the trick, I'll add it to sunos .cf files. I also installed OpenSolaris in VirtualBox and made some tests. Looks that code designed for Solaris works also with OpenSolaris so there is no problem with backward compatibility. The one thing which is very pleasure in OpenSolaris is easy access to GNU tools which can be installed by package manager in practice automatically and used instead of native SunOS ones. It's also much easier to port GNU tools to OpenSolaris then to the older Solaris versions due to greatly extended compatibility. Harbour can be compiled without any problems and everything also shared libraries works out of the box. It's enough to set -fPIC (or -fpic but I haven't made any tests with SPARC so I'm not sure if 8KB is still enough for Harbour code). For make_gcc.sh I had to make some small cosmetic modifications. I'll commit them in a while. > > BTW did you used POSIX thread (pthread) for MT compilation or SunOS > > (thr_*() function) threads? > > I think it will be good to update OpenSolaris Harbour MT builds to work > > on SunOS even without pthread installed. > I looked at thr_ vs pthread_ functions and documentation, they're both > implemented inside libc, so there is no real advantage in using thr_ > functions. [...] > This is from man threads. > Why do you think it would be better to use them? In the older Solaris versions using POSIX threads is not such easy. They were not default part of system. That's the main reason. Now it's not a problem though if we can add support for SunOS threads with small cost then I think we should make it. It should be rather simple job for an hour or two. I'll look at it in this week. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour