| Summary: | sys.mk is lacking single suffix rules for C++ | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Georg-W. Koltermann <gwk> |
| Component: | bin | Assignee: | David E. O'Brien <obrien> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.2-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed committed. Thanks! Responsible Changed From-To: freebsd-bugs->obrien I did it. |
/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".