Fix breakage after r227983; lib/libcxxrt still got built, because it was

not disabled in the usual way (by adding it to __DEFAULT_NO_OPTIONS in
share/mk/bsd.own.mk), and because the test for MK_LIBCPLUSPLUS in
Makefile.inc1 was incorrect.

Pointy hat to:	dim
This commit is contained in:
Dimitry Andric 2011-11-26 03:26:06 +00:00
parent 66761af34f
commit 49c8e5e77e
3 changed files with 10 additions and 10 deletions

View File

@ -1218,7 +1218,7 @@ _startup_libs+= lib/csu/${MACHINE_CPUARCH}
_startup_libs+= gnu/lib/libgcc
_startup_libs+= lib/libcompiler_rt
_startup_libs+= lib/libc
.if defined(MK_LIBCPLUSPLUS)
.if ${MK_LIBCPLUSPLUS} != "no"
_startup_libs+= lib/libcxxrt
.endif

View File

@ -48,13 +48,9 @@ SUBDIR_ORDERED= ${_csu} \
libsbuf \
libtacplus \
libutil \
${_libypclnt}
.if ${MK_LIBCPLUSPLUS} != "no"
SUBDIR_ORDERED+=libcxxrt\
libc++
.endif
${_libypclnt} \
${_libcxxrt} \
${_libcplusplus}
SUBDIR= ${SUBDIR_ORDERED} \
libalias \
@ -209,6 +205,11 @@ _libsmb= libsmb
_libmp= libmp
.endif
.if ${MK_LIBCPLUSPLUS} != "no"
_libcxxrt= libcxxrt
_libcplusplus= libc++
.endif
.if ${MK_PMC} != "no"
_libpmc= libpmc
.endif

View File

@ -413,6 +413,7 @@ __DEFAULT_NO_OPTIONS = \
HESIOD \
ICONV \
IDEA \
LIBCPLUSPLUS \
OFED
#
@ -553,8 +554,6 @@ MK_GCC:= no
MK_GDB:= no
.endif
MK_LIBCPLUSPLUS?= no
#
# Set defaults for the MK_*_SUPPORT variables.
#