Subject: pkg/15651: bootsrap-pkgsrc for Darwin sets wrong CXX in
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/18/2002 00:18:10
>Number:         15651
>Category:       pkg
>Synopsis:       bootsrap-pkgsrc for Darwin sets wrong CXX in
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 18 00:18:01 PST 2002
>Originator:     Rob Latham
>Release:        pkgsrc on OS X
Darwin localhost 5.2 Darwin Kernel Version 5.2: Fri Dec  7 21:39:35 PST 2001; root:xnu/xnu-201.14.obj~1/RELEASE_PPC  Power Macintosh powerpc
Apple dev tools provide gcc and g++, except they are installed as cc and c++.  Packages like ncurses try to build their c++ libraries with g++ and fail the configure ( "checking for C++ compiler...") stage.
build any pkg on darwin that needs a c++ compiler
apply this patch to the pkgsrc bootstrap tarball for darwin

---  Mon Feb 18 02:14:11 2002
+++       Mon Feb 18 02:14:22 2002
@@ -31,7 +31,7 @@
 COMPILE.c=     ${CC} ${CFLAGS} ${CPPFLAGS} -c
 LINK.c=                ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}
-CXX=           g++
+CXX=           c++