Bug 691208

Summary: Wrong compilation (as shared objects) of ghostscript loaders: gsc and gsx
Product: Ghostscript Reporter: Piotr Strzelczyk <piotr>
Component: Build ProcessAssignee: Ralph Giles <ralph.giles>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P4    
Version: 8.71   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

Description Piotr Strzelczyk 2010-03-22 12:04:19 UTC
In 8.71 release makefile of shared unix version was changed:

$ diff unix-dll.ma unix-dll.mak
13c13
< # $Id: unix-dll.mak 9085 2008-09-13 20:22:25Z giles $
---
> # $Id: unix-dll.mak 10180 2009-10-19 20:24:53Z giles $
[...]
82c82,83
<       $(GLCC) -g -o $(GSSOC_XE) $(PSSRC)dxmainc.c -L$(BINDIR) -l$(GS)
---
>       $(GLCC) -g -o $(GSSOC_XE) $(PSSRC)dxmainc.c \
>       $(LDFLAGS) -L$(BINDIR) -l$(GS)
86c87
<       -L$(BINDIR) -l$(GS) $(SOC_LIBS)
---
>       $(LDFLAGS) -L$(BINDIR) -l$(GS) $(SOC_LIBS)
[...]

added LDFLAGS causes that gsc and gsx compiles as a SHARED OBJECT, not a EXECUTABLE!

The fix is easy -- revert this two changes.
Comment 1 Hin-Tak Leung 2010-03-22 12:24:07 UTC
Thanks for the patch - this is already been discussed in the context of bug 690695.

Ralph: any chance of commiting *anything* to fix this? There has been a few different suggestions now...

*** This bug has been marked as a duplicate of bug 690695 ***