Bug 24438

Summary: sys.mk is lacking single suffix rules for C++
Product: Base System Reporter: Georg-W. Koltermann <gwk>
Component: binAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-RELEASE   
Hardware: Any   
OS: Any   

Description Georg-W. Koltermann 2001-01-18 21:10:01 UTC
/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.

Fix: 

+.cc .cpp .cxx .C:
+       ${CXX} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
+
 .m.o:
        ${OBJC} ${OBJCFLAGS} -c ${.IMPSRC}--OwdZHWrSL0mjARNynL0uOGs3EmU3sBVYfKcgbGCqHmtDRcQj
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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}
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".
Comment 1 David E. O'Brien freebsd_committer freebsd_triage 2001-06-06 17:52:37 UTC
State Changed
From-To: open->closed

committed.  Thanks! 


Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2001-06-06 17:52:37 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

I did it.