Subject: Bug#3793: bsd.lib.mk incompatible with GNU ar

From: Philip Blundell <[email-masked]>
Date: Tue, 16 Jul 1996 10:46:27 +0100 (BST)

Package: pmake
Version: 1.0-12

The bsd.lib.mk file supplied with pmake passes the T flag to GNU ar, which
doesn't understand it and produces an error.  Although GNU ar arguably
ought to silently accept and ignore -T (for compatibility with other
versions) it would be best if bsd.lib.mk didn't give the flag in the 
first place.

I suggest that bsd.lib.mk be amended as follows:

--- bsd.lib.mk.orig	Fri May 24 10:52:39 1996
+++ bsd.lib.mk	Mon Jul 15 15:55:23 1996
@@ -62,14 +62,14 @@
 lib${LIB}.a:: ${OBJS}
 	@echo building standard ${LIB} library
 	@rm -f lib${LIB}.a
-	@${AR} cTq lib${LIB}.a `lorder ${OBJS} | tsort` ${LDADD}
+	@${AR} cq lib${LIB}.a `lorder ${OBJS} | tsort` ${LDADD}
 	ranlib lib${LIB}.a
 
 POBJS+=	${OBJS:.o=.po}
 lib${LIB}_p.a:: ${POBJS}
 	@echo building profiled ${LIB} library
 	@rm -f lib${LIB}_p.a
-	@${AR} cTq lib${LIB}_p.a `lorder ${POBJS} | tsort` ${LDADD}
+	@${AR} cq lib${LIB}_p.a `lorder ${POBJS} | tsort` ${LDADD}
 	ranlib lib${LIB}_p.a
 
 llib-l${LIB}.ln: ${SRCS}