Date: Sat, 26 Jan 2013 19:12:05 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r311044 - head/textproc/html2text/files Message-ID: <201301261912.r0QJC568019694@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Sat Jan 26 19:12:05 2013 New Revision: 311044 URL: http://svnweb.freebsd.org/changeset/ports/311044 Log: Permit textproc/html2text to be built with clang. Patch submitted upstream Submitted by: keramida Modified: head/textproc/html2text/files/patch-configure Modified: head/textproc/html2text/files/patch-configure ============================================================================== --- head/textproc/html2text/files/patch-configure Sat Jan 26 19:06:31 2013 (r311043) +++ head/textproc/html2text/files/patch-configure Sat Jan 26 19:12:05 2013 (r311044) @@ -10,3 +10,25 @@ if $i -c $tmp_file.C 2>/dev/null; then CXX="$i"; break; +@@ -205,12 +205,19 @@ + #include <new> + #include <vector> + using namespace std; +-void func() { map<string, string> x; } ++int main(void) { ++ map<string, string> x; ++ return 0; ++} + EOF +-if $CXX -c $tmp_file.C 2>/dev/null; then ++if $CXX $tmp_file.C 2>/dev/null; then + LIBSTDCXX_INCLUDES=""; + LIBSTDCXX_LIBS=""; + $echo 'works; no need to make "./libstd"'; ++elif $CXX $tmp_file.C -lstdc++ 2>/dev/null; then ++ LIBSTDCXX_INCLUDES=""; ++ LIBSTDCXX_LIBS="-lstdc++"; ++ $echo 'works with libstdc++; no need to make "./libstd"'; + else + LIBSTDCXX_INCLUDES='-Ilibstd/include'; + LIBSTDCXX_LIBS='libstd/libstd.a';
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301261912.r0QJC568019694>