Subject: port-cats/13583: lib/libarch/Makefile makes libarm3232.a on CATS
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 07/29/2001 04:22:42
>Number:         13583
>Category:       port-cats
>Synopsis:       lib/libarch/Makefile makes libarm3232.a on CATS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-cats-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 28 12:19:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Izumi Tsutsui
>Release:        NetBSD-current 20010725
>Organization:
Izumi Tsutsui	Himeji City, Japan
>Environment:
NetBSD/cats 1.5W
Architecture: arm32
Machine: cats
>Description:
src/lib/libarch/Makefile makes libarm3232* for LIBs on CATS

>How-To-Repeat:
---
cd /usr/src/lib/libarch; make -n
 :
echo building standard arm3232 library
rm -f libarm3232.a
ar cq libarm3232.a `NM=nm lorder arm32_sync_icache.o arm32_drain_writebuf.o | tsort -q`
ranlib libarm3232.a
echo building profiled arm3232 library
rm -f libarm3232_p.a
ar cq libarm3232_p.a `NM=nm lorder arm32_sync_icache.po arm32_drain_writebuf.po | tsort -q`
ranlib libarm3232_p.a
echo building shared object arm3232 library
rm -f libarm3232_pic.a
ar cq libarm3232_pic.a `NM=nm lorder arm32_sync_icache.so arm32_drain_writebuf.so | tsort -q`
ranlib libarm3232_pic.a
---

>Fix:
Use a correct regular expression in Makefile:

--- Makefile.orig	Sun Jul 29 04:16:44 2001
+++ Makefile	Sun Jul 29 04:16:50 2001
@@ -13,7 +13,7 @@
 
 # Build the library if SRCS is now defined ...
 .if defined(SRCS)
-LIB=    ${MACHINE_ARCH:C/mipse[bl]/mips/:C/arm*/arm32/}
+LIB=    ${MACHINE_ARCH:C/mipse[bl]/mips/:C/arm.*/arm32/}
 SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version
 
 .include <bsd.lib.mk>
>Release-Note:
>Audit-Trail:
>Unformatted: