On Wed, Feb 25, 2015 at 11:39:22PM -0000, phi...@apache.org wrote: > Author: philip > Date: Wed Feb 25 23:39:22 2015 > New Revision: 1662329 > > URL: http://svn.apache.org/r1662329 > Log: > * configure.ac: Don't add -lstdc++ on FreeBSD 10 as it is not needed and > adding it causes linking to fail.
Is there something else we can check for rather than OS and its version? That's a very brittle kind of check to do. For example, if this is related to clang the check should involve clang. > Modified: > subversion/trunk/configure.ac > > Modified: subversion/trunk/configure.ac > URL: > http://svn.apache.org/viewvc/subversion/trunk/configure.ac?rev=1662329&r1=1662328&r2=1662329&view=diff > ============================================================================== > --- subversion/trunk/configure.ac (original) > +++ subversion/trunk/configure.ac Wed Feb 25 23:39:22 2015 > @@ -1455,8 +1455,15 @@ if test "$do_javahl_build" = "yes"; then > # it. > AC_MSG_CHECKING([for additional flags to link C++ libraries]) > if test "x$ac_compiler_gnu" = "xyes"; then > - LT_CXX_LIBADD="-lstdc++" > - AC_MSG_RESULT([$LT_CXX_LIBADD]) > + case "$host" in > + *freebsd10*) > + AC_MSG_RESULT([none needed]) > + ;; > + *) > + LT_CXX_LIBADD="-lstdc++" > + AC_MSG_RESULT([$LT_CXX_LIBADD]) > + ;; > + esac > else > AC_MSG_RESULT([none needed]) > fi >