Subject: pkg/18251: Patch bug in graphics/netpbm
To: None <gnats-bugs@gnats.netbsd.org>
From: None <julien.letessier@sun.com>
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
>Closed-Date:
>Last-Modified:
>Originator:     Julien T. Letessier
>Release:        Zoularis/Solaris8
>Organization:
Sun Labs Europe
>Environment:
SunOS mikdemia 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-Enterprise
>Description:
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)
+endif

GNU ld uses -Bdynamic instead of -B dynamic; in fact it's useless Solaris, since dynamic objects are a default.
>How-To-Repeat:
Build graphics/netpbm on Solaris.
>Fix:
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)
  endif
endif

or something similar.
ideally, this flag selection should probably be moved to the pkgsrc Makefile.
>Release-Note:
>Audit-Trail:
>Unformatted: