Subject: toolchain/18246: .cpp C++ suffix not supported by standard makefiles
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/09/2002 19:21:22
>Number:         18246
>Category:       toolchain
>Synopsis:       .cpp C++ suffix not supported by standard makefiles
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 09 19:22:00 PDT 2002
>Originator:     Andrew White
>Release:        1.5.3
NetBSD thor 1.5.3 NetBSD 1.5.3 (GENERIC) #0: Tue Aug 27 17:42:36 EST 2002     awhite@thor:/usr/src/sys/usr/src/sys/arch/i386/compile/GENERIC i386
On PC/Mac platforms, C++ files tend to use the .cpp file suffix.  This suffix is not supported by the BSD makefiles, which makes porting painful.
Try to compile any file using a .cpp suffix using the standard Makefile toolchain.  Note that system rules work, but the special toolchain rules don't.
Change the following files in /usr/share/mk:,,,, to add .cpp suffix (and perhaps .cxx) wherever .cc appears.

I note already includes .cpp and .cxx support.