Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 21053
Status: resolved
Worked: 7 min
Priority: 0/
Queue: GD

People
Owner: LDS [...] cpan.org
Requestors: awkay69 [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 2.30
  • 2.31
  • 2.32
  • 2.34
Fixed in: (no value)



Subject: Make tries to link libpng, even if you tell it you don't want it
The linkage from the build system tries to link against libpng (and others) even if you specify that you do not have them installed.
If gdlib-config is installed (which it is under all recent versions of libgd) then the libraries it specifies when passed the --libs option will override the individual library options passed to Makefile.PL. This ensures that GD will always link properly. If this is what you are experiencing, then it is not a bug but a feature.
On Thu Aug 17 15:45:45 2006, LDS wrote: Show quoted text
> If gdlib-config is installed (which it is under all recent versions of > libgd) then the libraries it specifies when passed the --libs option > will override the individual library options passed to Makefile.PL. This > ensures that GD will always link properly. If this is what you are > experiencing, then it is not a bug but a feature.
Specifically in Makefile.PL: line 31 should NOT include -lpng, and there should be a line around 195 that looks like: push @LIBS,'-lpng' if $PNG;
Fair enough. If using an old version of gdlib then the logic of putting libpng onto @libs is incorrect, and this will be fixed in the next version of GD. However, the code that decides what to put onto @libs will never be invoked if gdlib-config is present, which is almost always the case nowadays.