[Bug 229626] Mk/Uses/compiler.mk has spurious complaints for some ports on gcc-based archs

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 30 21:14:17 UTC 2018


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

--- Comment #5 from dewayne at heuristicsystems.com.au ---
(In reply to Mark Linimon from comment #4)
I've had similar problems with compilers.mk as I use gcc8 for some ports (in
addition to those earmarked with USE_GCC), clang 6.0.1 and binutils 2.30
with/without ccache. I got to the point of modifying my make.conf to respond to
various parameters.  So I'm interested in your outcome(s). I'm intending to use
lto to benefit from control flow integrity, which is the reason for the
workarounds :)

In your patch, Mark, you might consider using absolute paths for the base
clang, to avoid any ambiguity (unless you manipulate PATH) in 
+CPP=   clang-cpp
+CC=    clang
+CXX=   clang++

Also can I suggest that you change your make.conf to something like
REALLY_WANT_CLANG_LIST= sysutils/osquery
.for P in ${REALLY_WANT_CLANG_LIST}
.if (!empty(.CURDIR:M/usr/ports/$P) ||
!empty(.CURDIR:M/var/ports/usr/ports/$P/*)
REALLY_REALLY_WANT_CLANG=       40
.endif
.endfor
rather than change the $category/$port/Makefile(s) - its a little less hassle
when you svn update, and there will be conflicts ;)

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


More information about the freebsd-ports-bugs mailing list