From owner-freebsd-bugs Thu Jan 18 13:10:21 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5F42C37B698 for ; Thu, 18 Jan 2001 13:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0ILA1O84726; Thu, 18 Jan 2001 13:10:01 -0800 (PST) (envelope-from gnats) Received: from yog-sothoth.sgi.com (unknown [192.48.160.10]) by hub.freebsd.org (Postfix) with ESMTP id DD89B37B698 for ; Thu, 18 Jan 2001 13:09:52 -0800 (PST) Received: from sgiger.munich.sgi.com (sgiger.munich.sgi.com [144.253.192.2]) by yog-sothoth.sgi.com (980305.SGI.8.8.8-aspam-6.2/980304.SGI-aspam-europe) via SMTP id WAA10802386 for <@eugate.sgi.com:FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Jan 2001 22:08:28 +0100 (CET) mail_from (gwk@sgi.com) Received: from cuckoo.munich.sgi.com (cuckoo.munich.sgi.com [144.253.192.109]) by sgiger.munich.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id WAA09127; Thu, 18 Jan 2001 22:08:08 +0100 Received: from sgi.com (private-gk.munich.sgi.com [144.253.196.49]) by cuckoo.munich.sgi.com (SGI-8.9.3/8.9.3) with ESMTP id WAA40054; Thu, 18 Jan 2001 22:08:07 +0100 (MET) Message-Id: <3A675AF7.11C46322@sgi.com> Date: Thu, 18 Jan 2001 22:07:04 +0100 From: "Georg-W. Koltermann" To: FreeBSD-gnats-submit@freebsd.org Subject: bin/24438: sys.mk is lacking single suffix rules for C++ Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 24438 >Category: bin >Synopsis: sys.mk is lacking single suffix rules for C++ >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 18 13:10:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Georg-W. Koltermann >Release: FreeBSD 4.2-RELEASE i386 >Organization: SGI >Environment: >Description: /usr/share/mk/sys.mk contains only double suffix rules for C++ sources: .cc.o .cpp.o .cxx.o .C.o. The single suffix rules .cc .cpp .cxx .C are missing. See fix section for a suitable patch. >How-To-Repeat: Create a C++ source file, e.g. sample.C, without a Makefile. Type "make sample". Make barfs "make: don't know how to make sample. Stop". >Fix: --- sys.mk.old Mon Nov 20 13:01:21 2000 +++ sys.mk Thu Jan 18 21:55:20 2001 @@ -181,6 +181,9 @@ .cc.o .cpp.o .cxx.o .C.o: ${CXX} ${CXXFLAGS} -c ${.IMPSRC} +.cc .cpp .cxx .C: + ${CXX} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} + .m.o: ${OBJC} ${OBJCFLAGS} -c ${.IMPSRC} >Release-Note: >Audit-Trail: >Unformatted: X-send-pr-version: 3.2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message