Subject: pkg/18251: Patch bug in graphics/netpbm
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/10/2002 02:54:52
>Number:         18251
>Category:       pkg
>Synopsis:       Patch bug in graphics/netpbm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 10 02:55:00 PDT 2002
>Originator:     Julien T. Letessier
>Release:        Zoularis/Solaris8
Sun Labs Europe
SunOS mikdemia 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-Enterprise
The following lines in patch-aa cause an error if you're using GNU ld rather than Sun's linker:

+ifeq ($(OPSYS),SunOS)
+LDSHLIB = -Wl,-B,dynamic,-G,-h,$(SONAME)

GNU ld uses -Bdynamic instead of -B dynamic; in fact it's useless Solaris, since dynamic objects are a default.
Build graphics/netpbm on Solaris.
Either delete the incriminated lines (i.e. use the NetBSD default), or change them to

ifeq ($(OPSYS),SunOS)
  ifeq ($(LD),/usr/ccs/bin/ld)
    LDSHLIB = -Wl,-B,dynamic,-G,-h,$(SONAME)

or something similar.
ideally, this flag selection should probably be moved to the pkgsrc Makefile.