While building GhostScript on Solaris Nevada using the Workshop compilers, I ran into a few issues. "make so" fails due to incorrect compiler and linker flags (-fPIC, -shared, -soname= are all gccisms) "grep -q" doesn't work with the bundled grep on Solaris
Created attachment 3429 [details] build changes for Sun Workshop compilers This patch updates the build to work with either gcc or the Sun Workshop compilers on Solaris. I built the so version using both gcc and workshop with these changes. While building this patch, I noticed some places in the build where platform checks could be improved as well.
Created attachment 3430 [details] Updated build patch for workshop compilers This update fixes the build of shared objects in devs.mak to build on Solaris as well as all fixes in the previous patch attached.
I've committed the grep fix. The rest needs work to not break other platforms. Is -KPIC really the appropriate choice for non-gcc compilers?
Grabbing a Ralph's bugs.
Between Alex's commits 11976 and 11984, and my commit 12035, the shared library builds on Sparc Solaris should now work correctly with both gcc and Sun cc. NOTE: the "so" target still requires GNU make.