Fix the following issues: 1. As I already said, using -pthread[s] is useless unless the application uses any Pthread functions. PGP 2.x doesn't: | openpkg-dev$ find /tmp/rse/openpkg/pgp-2.6.3i -type f -print |\ | xargs grep -i pthread | openpkg-dev$ _ So I do not understand what the fuzz is about in your fiddling with this here. 2. Even if it would be correct to use the above Pthread fiddling, you still do not depend on "gcc" and hence %{l_cc} still could be the Workshop compiler on a Solaris box. 3. If you look inside src/makefile of PGP 2.x you will recognize that all this is fully broken, because only a few platforms respect $(CC). Most (like Solaris) force it to something like CC=gcc, etc. 4. In your latest version above you now have the init of CFLAGS twice. 5. Your OS=sun4gcc should be OS=sun4sunos5gcc, because sun4gcc is for the good old braindead SunOS 4 (although this still might work on SunOS 5). 6. In general the whole direct $OS determination is predestined to fail because it restricts you to a _very_ limited set of platforms. Something like a small decision hierarchy approach is needed here. 7. PGP complains under run-time: | openpkg-dev$ /cw/bin/pgp -kg | Pretty Good Privacy(tm) 2.6.3ia - Public-key encryption for the masses. | (c) 1990-96 Philip Zimmermann, Phil's Pretty Good Software. 1996-03-04 | International version - not for use in the USA. Does not use RSAREF. | Current time: 2002/06/21 19:49 GMT | | Error: PGP User's Guide not found. | PGP looked for it in the following directories: The pgpdoc[12].txt files are missing. 8. The binary and man-page you install conflicts with the files in our "pgp" package. A "pgp2" package should install <prefix>/bin/pgp2, of course. 9. The package "Distribution" is "OpenPKG [REL]" instead of "OpenPKG [EXP]".