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

Re: r727 doesn't build w/ --disable-shared

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-01-08 18:58:00 CET

Thanks for the fix, Mo, patch applied!

-K

Mo DeJong <supermo@bayarea.net> writes:
> This change was not correct since version 4.X still creates a .a
> file instead of a .la file when built with --disable-shared. The
> following patch fixes the problem.
>
>
> 2002-01-07 Mo DeJong <supermo@bayarea.net>
>
> * ac-helpers/berkeley-db.m4 (SVN_LIB_BERKELEY_DB): Reverse change
> make on 2002-01-02 (rev 727) that unconditionally linked to a .la
> file in the db subdirectory. When built with --disable-shared,
> Berkeley db does not create a .la file. Note that the library
> name change for 4.X was not reversed.
>
> Index: ac-helpers/berkeley-db.m4
> ===================================================================
> --- ac-helpers/.svn/text-base/berkeley-db.m4.svn-base Mon Jan 7 05:47:35 2002
> +++ ac-helpers/berkeley-db.m4 Mon Jan 7 06:35:03 2002
> @@ -97,7 +97,13 @@
> dbdir=`cd db/dist ; pwd`
> SVN_DB_INCLUDES="-I$dbdir"
> svn_lib_berkeley_db=yes
> - SVN_DB_LIBS="$dbdir/libdb-4.0.la"
> + # Linking directly to the .la is broken with --disable-shared
> + # because Berkeley db does not seem to generate a .la library.
> + if test "$enable_shared" = "yes"; then
> + SVN_DB_LIBS="$dbdir/libdb-4.0.la"
> + else
> + SVN_DB_LIBS="-L$dbdir -ldb"
> + fi
> elif test "$status" = "skip"; then
> svn_lib_berkeley_db=no
> else
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:55 2006

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.