Subject: pkg/21781: Solaris: pkgsrc/lang/lua fails to build
To: None <>
From: None <>
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
>Originator:     Ingolf Steinbach
>Release:        pkgsrc as of 2003-05-22
Jena-Optronik GmbH
SunOS polaris 5.6 Generic_105181-11 sun4u sparc
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/ 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).
Try to build pkgsrc/lang/lua on Solaris with LD=/usr/ccs/bin/ld.
The fix is probably to provide different linker flags in (as
installed by bootstrap-pkgsrc) depending on wether GNU-ld or
some other ld is used.