Bug 691208 - Wrong compilation (as shared objects) of ghostscript loaders: gsc and gsx
Summary: Wrong compilation (as shared objects) of ghostscript loaders: gsc and gsx
Status: RESOLVED DUPLICATE of bug 690695
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: 8.71
Hardware: PC Linux
: P4 normal
Assignee: Ralph Giles
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-22 12:04 UTC by Piotr Strzelczyk
Modified: 2010-03-22 12:24 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***