Subject: pkg/21781: Solaris: pkgsrc/lang/lua fails to build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ingolf.steinbach@jena-optronik.de>
List: netbsd-bugs
Date: 06/04/2003 13:30:23
>Number:         21781
>Category:       pkg
>Synopsis:       Solaris: pkgsrc/lang/lua fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 04 13:31:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Ingolf Steinbach
>Release:        pkgsrc as of 2003-05-22
>Organization:
Jena-Optronik GmbH
>Environment:
SunOS polaris 5.6 Generic_105181-11 sun4u sparc
>Description:
On Solaris, pkgsrc/lang/lua cannot be built. At least when using a linker
other than GNU ld, e.g. /usr/ccs/bin/ld.

The reason is that /usr/pkg/share/mk/bsd.lib.mk is used to create liblua.
This file contains many lines of the form
    @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
which make /usr/ccs/bin/ld complain (because -x is GNU-ld specific).
>How-To-Repeat:
Try to build pkgsrc/lang/lua on Solaris with LD=/usr/ccs/bin/ld.
>Fix:
The fix is probably to provide different linker flags in bsd.lib.mk (as
installed by bootstrap-pkgsrc) depending on wether GNU-ld or
some other ld is used.
>Release-Note:
>Audit-Trail:
>Unformatted: