Subject: pkg/15651: bootsrap-pkgsrc for Darwin sets wrong CXX in sys.mk
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rob@terizla.org>
List: netbsd-bugs
Date: 02/18/2002 00:18:10
>Number: 15651
>Category: pkg
>Synopsis: bootsrap-pkgsrc for Darwin sets wrong CXX in sys.mk
>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
>Closed-Date:
>Last-Modified:
>Originator: Rob Latham
>Release: pkgsrc on OS X
>Organization:
>Environment:
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
>Description:
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.
>How-To-Repeat:
build any pkg on darwin that needs a c++ compiler
>Fix:
apply this patch to the pkgsrc bootstrap tarball for darwin
--- Darwin.sys.mk.dist Mon Feb 18 02:14:11 2002
+++ Darwin.sys.mk 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++
CXXFLAGS= ${CFLAGS}
COMPILE.cc= ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c
LINK.cc= ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS}
>Release-Note:
>Audit-Trail:
>Unformatted: