Changeset 171


Ignore:
Timestamp:
Aug 26, 2006, 11:47:43 PM (12 years ago)
Author:
jari
Message:

Fixes #72. Introduced libtool to create a static svndigest. Libtool
creates partially static libraries, i.e., links all functions from
static libraries available and performs shared linkage to the rest.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r164 r171  
    2424
    2525version pre0.5:
     26        - Creation of static svndigest binary is now supported, use
     27          --enable-staticbin.
    2628        - 'configure' now checks for APR and subversion APIs.
    2729        - Added a --enable-debug option to autoconf. The project is
  • trunk/INSTALL

    r160 r171  
    4343location information with --with-apr=DIR and --with-svn=DIR,
    4444respectively. --enable-debug turns on debug options and code, which
    45 may be useful for developers.
     45may be useful for developers. --enable-staticbin will create a static
     46svndigest binary. (Actually as static as the underlying program
     47libraries allows it to be, i.e., some libraries might not have been
     48created/installed in static versions.)
    4649
    4750If you grabbed the source from the subversion repository you need to
  • trunk/bin/Makefile.am

    r169 r171  
    2828noinst_HEADERS = Parameter.h
    2929
    30 LDADD = @top_srcdir@/lib/libsvndigest.la
     30LDADD =  $(STATICFLAG) @top_srcdir@/lib/libsvndigest.la
    3131
    3232AM_CPPFLAGS = -I@top_srcdir@/lib
  • trunk/configure.ac

    r168 r171  
    5757fi
    5858
     59# optionally prepare for building static libraries.
     60AC_ARG_ENABLE(staticbin,
     61  [  --enable-staticbin      create a static binary])
     62if test "$enable_staticbin" = "yes"; then
     63        case $host in
     64        *-apple-darwin*)
     65                # At the time of creating this libsvn_subr uses
     66                # Keychain on Mac OSX. In consequence the below
     67                # frameworks are needed for succesful static builds.
     68                LIBS="$LIBS -framework Security"
     69                LIBS="$LIBS -framework CoreFoundation"
     70                LIBS="$LIBS -framework CoreServices"
     71                ;;
     72        esac
     73        STATICFLAG=-static
     74        AC_SUBST(STATICFLAG)
     75fi
     76
    5977# Apache Portable Runtime (APR) API checks
    6078# The next three lines are not needed as long as APR_FIND_APR is used.
     
    82100  [ LDFLAGS="$LDFLAGS -L$withval/lib" CPPFLAGS="$CPPFLAGS -I$withval/include"])
    83101AC_CHECK_HEADER([subversion-1/svn_types.h],,svn_found="no")
     102# The library checks below may match shared libs even when
     103# --enable-staticbin is given to configure. This should probably not
     104# pose any problems since in a properly installed system the shared
     105# and static libraries should be the same.
    84106AC_SEARCH_LIBS([svn_cmdline_setup_auth_baton],[svn_subr-1],,svn_found="no")
    85107AC_SEARCH_LIBS([svn_ra_initialize],[svn_ra-1],,svn_found="no")
  • trunk/test/Makefile.am

    r170 r171  
    2626check_PROGRAMS = $(TESTS)
    2727
    28 LDADD = @top_srcdir@/lib/libsvndigest.la
     28LDADD =  $(STATICFLAG) @top_srcdir@/lib/libsvndigest.la
    2929
    3030AM_CPPFLAGS = -I@top_srcdir@/lib
Note: See TracChangeset for help on using the changeset viewer.