A user, Hauke Klein <klein@math.uni-kiel.de>, sent the attached patch along with this email; while building ghostscript 8.62 with non-standard settings for GLGENDIR, GLOBJDIR, ... I noticed a few small inconsistencies in ghostscripts makefiles. The attached patch should fix these. I'm also building with a separate build directory. Unfortunately, the resulting path strings overflow a static buffer in echogs.c. The patch also changes the size of these buffers. I'm just including limits.h, I should probably guard this with an HAVE_LIMITS_H or something like this.
Created attachment 3927 [details] patch
Fixes committed in r8634 and r8635. We don't use PATH_MAX (or FILENAME_MAX or...) because it's not reliably defined, so I just bumped it from an arbitrary 100 to an arbitrary 1000. Thanks for the report.