Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101098 - app-text/ghostcript-gnu: make linking work on --as-needed flag
Summary: app-text/ghostcript-gnu: make linking work on --as-needed flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 07:56 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2005-08-04 13:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild patch (ghostscript-gnu-8.16.patch,751 bytes, patch)
2005-08-02 08:02 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-02 07:56:51 UTC
Also if it's not supported, a package breaking on --as-needed flag usually 
means that there's something wrong in the build process or in the code. 
 
In this case, ghostscript-gnu fails quite immediately with an error during 
linking of bin/gs . The problem is that -lcups and -lcupsimage are added by 
the ebuild to the Makefile via LDFLAGS, but LDFLAGS are put at the start of 
the linker's commandline, while libraries should be specified at the end. The 
solution is to add those to EXTRALIBS that's there just for that reason. 
 
The simple attached patch fixes the problem and allows ghostscript-gnu to be 
merged fine. 
 
HTH, 
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-02 08:02:05 UTC
Created attachment 64939 [details, diff]
Ebuild patch
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2005-08-04 13:11:10 UTC
thanks, fixed