[Bug 200236] [maintainer][patch] games/wesnoth: fix for some FreeBSD 10.1 builds

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 27 09:30:16 UTC 2015


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

Don Lewis <truckman at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |truckman at FreeBSD.org

--- Comment #30 from Don Lewis <truckman at FreeBSD.org> ---
(In reply to John Marino from comment #18)

There is no guarantee that clang is present on 9, 10, and 11.  This is true by
default on some of the tier 2 platforms according to src.conf(5), and on i386
or amd64 the end user might have added WITHOUT_CLANG to his /etc/src.conf.

If using the base version of clang if present is OK then the cleanest solution
might be to add USES=compiler:cwhatever to the Makefile.  Since boost is used
by this port, and boost is built with the default c++ compiler from base, it
gets tricky.  On FreeBSD 9, many of the USES=compiler options will use clang as
the compiler and result in fatal libstdc++ vs. libc++ conflicts. 
USES=compiler:c++11-lib will generally do the right thing here because it will
use the ports version of gcc if COMPILER_TYPE != clang.

BTW, the COMPILER_VERSION check in ".if ${COMPILER_TYPE} == gcc &&
${COMPILER_VERSION} <= 42" is pretty useless because it is always true when
COMPILER_TYPE is gcc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-office mailing list