Subject: pkg/23878: NetBSD make can't build allow pkgsrc/devel/libgetopt to build; trival fix
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 12/25/2003 09:32:19
>Number: 23878
>Category: pkg
>Synopsis: NetBSD make can't build allow pkgsrc/devel/libgetopt to build; trival fix
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Dec 25 09:33:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Michal Pasternak
>Release: N/A
>Organization:
>Environment:
FreeBSD mainframe.w.lub.pl 4.9-STABLE FreeBSD 4.9-STABLE #0: Tue Dec 23 20:45:53 CET 2003 root@mainframe.w.lub.pl:/usr/obj/usr/src/sys/MP-UX i386
>Description:
Buildling devel/libgetopt on FreeBSD-STABLE system breaks at:
===> Building for libgetopt-1.3
cc -O2 -Werror -c getopt_long.c
cc -O2 -Werror -c -fPIC -DPIC getopt_long.c -o getopt_long.so
building standard getopt library
ar -c -q libgetopt.a `NM=nm lorder getopt_long.o | tsort -q`
/usr/libexec/elf/ar: no operation specified
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/libgetopt/work/libgetopt
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/libgetopt
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/libgetopt
>How-To-Repeat:
Obvious
>Fix:
Sorry for not providing the diffs. Please change __archivebuild
target in /usr/pkg/share/mk/bsd.lib.mk from this:
__archivebuild: .USE
@rm -f ${.TARGET}
${AR} -c -q ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}`
${RANLIB} ${.TARGET}
to this:
__archivebuild: .USE
@rm -f ${.TARGET}
.if ${OPSYS} != "FreeBSD"
${AR} -c -q ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}`
.else
${AR} cq ${.TARGET} `NM=${NM} ${LORDER} ${.ALLSRC:M*o} | ${TSORT}`
.endif
${RANLIB} ${.TARGET}
>Release-Note:
>Audit-Trail:
>Unformatted: