Created attachment 157258 [details] Fix textproc/kenlm sanity Jamfile to use the CXX variable In bug 200475, it turned out textproc/kenlm is using "CC" to do a sanity check at bootstrap time. Make it use ${CXX} instead. Note that either with or without this patch, the port does not build to completion anyway, with link errors like these: clang-linux.link lm/bin/model_test.test/clang-linux-3.6.1/release/link-static/threading-multi/model_test /usr/lib/crt1.o: In function `_start1': /usr/src/lib/csu/i386/crt1_c.c:(.text+0x156): undefined reference to `main' clang++: error: linker command failed with exit code 1 (use -v to see invocation)
(In reply to Dimitry Andric from comment #0) Looks fine, please commit. PS: it does compile at least on stable/10 (amd64)
A commit references this bug: Author: dim Date: Fri May 29 21:32:44 UTC 2015 New revision: 387893 URL: https://svnweb.freebsd.org/changeset/ports/387893 Log: In PR200475, it turned out textproc/kenlm is using "CC" to do a sanity check at bootstrap time. Make it use ${CXX} instead. Approved by: demon (maintainer) PR: 200475, 200527 Changes: head/textproc/kenlm/files/patch-jam-files-sanity.jam