From gwk@sgi.com  Thu Jan 18 13:09:54 2001
Return-Path: <gwk@sgi.com>
Received: from yog-sothoth.sgi.com (unknown [192.48.160.10])
	by hub.freebsd.org (Postfix) with ESMTP id DD89B37B698
	for <FreeBSD-gnats-submit@freebsd.org>; 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" <gwk@sgi.com>
Sender: gwk@cuckoo.munich.sgi.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: sys.mk is lacking single suffix rules for C++

>Number:         24438
>Category:       bin
>Synopsis:       sys.mk is lacking single suffix rules for C++
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 18 13:10:01 PST 2001
>Closed-Date:    Wed Jun 6 09:52:37 PDT 2001
>Last-Modified:  Wed Jun 06 09:53:00 PDT 2001
>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:
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Wed Jun 6 09:52:37 PDT 2001 
State-Changed-Why:  
committed.  Thanks! 


Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: obrien 
Responsible-Changed-When: Wed Jun 6 09:52:37 PDT 2001 
Responsible-Changed-Why:  
I did it. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24438 
>Unformatted:
 X-send-pr-version: 3.2
 
