[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1662329 - /subversion/trunk/configure.ac

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 26 Feb 2015 09:47:58 +0100

On Wed, Feb 25, 2015 at 11:39:22PM -0000, philip_at_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
>
Received on 2015-02-26 09:50:10 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.