https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246488

--- Comment #8 from Mark Millard <marklmi26-f...@yahoo.com> ---
(In reply to Dimitry Andric from comment #7)

.if ${_COMPILER_ARGS:Mfeatures}
.if defined(_CXXINTERNAL_${_CXX_hash})
_CXXINTERNAL=   ${_CXXINTERNAL_${_CXX_hash}}
.else
_CXXINTERNAL!=  ${CXX} -\#\#\# /dev/null 2>&1
_CXXINTERNAL_${_CXX_hash}=      ${_CXXINTERNAL}
PORTS_ENV_VARS+=        _CXXINTERNAL_${_CXX_hash}
.endif
.if ${_CXXINTERNAL:M\"-lc++\"}
COMPILER_FEATURES=      libc++
.else
COMPILER_FEATURES=      libstdc++
.endif

When I the command with -### for g++9 I find a:

"-lstdc++"

and no instance of -lc++.

So I get COMPILER_FEATURES being libstdc++ .

Then later I see:

.if ${_COMPILER_ARGS:Mgcc-c++11-lib}
USE_GCC=        yes
CHOSEN_COMPILER_TYPE=   gcc
.if ${COMPILER_FEATURES:Mlibc++}
CXXFLAGS+=      -nostdinc++ -isystem /usr/include/c++/v1
LDFLAGS+=       -L${WRKDIR}

_USES_configure+=       200:gcc-libc++-configure
gcc-libc++-configure:
        @${LN} -fs /usr/lib/libc++.so ${WRKDIR}/libstdc++.so
.endif
.endif

which would not set the likes of -nostdinc++ and related material.

Have I missed something?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to