Hi, I do not see an easy way how to build elfutils statically and it also does not use -rpath, therefore one needs to fiddle with LD_LIBRARY_PATH.
(Moreover I find shared libraries build inconvenient for debugging as GDB does not pre-load before 'run' DT_NEEDED libraries which it could.) OK for check-in? Thanks, Jan elfutils/ 2012-09-14 Jan Kratochvil <[email protected]> * configure.ac: New option --enable-static. Default to the BUILD_STATIC conditional. (BUILD_STATIC): Use $enable_static. diff --git a/configure.ac b/configure.ac index adec1c1..8e6e2db 100644 --- a/configure.ac +++ b/configure.ac @@ -190,8 +190,19 @@ if test "$use_gcov" = yes; then fi AM_CONDITIONAL(GCOV, test "$use_gcov" = yes) -AM_CONDITIONAL(BUILD_STATIC, [dnl -test "$use_mudflap" = yes -o "$use_gprof" = yes -o "$use_gcov" = yes]) +AC_ARG_ENABLE([static],[dnl +AS_HELP_STRING([--enable-static], [build static binaries @<:@default=no@:>@])],[dnl +case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) AC_MSG_ERROR([invalid --enable-static option $enableval]) ;; +esac],[dnl +if test "$use_mudflap" = yes -o "$use_gprof" = yes -o "$use_gcov" = yes; then + enable_static=yes +else + enable_static=no +fi]) +AM_CONDITIONAL(BUILD_STATIC, [test "$enable_static" = yes]) AC_ARG_ENABLE([tests-rpath], AS_HELP_STRING([--enable-tests-rpath],[build $ORIGIN-using rpath into tests]), _______________________________________________ elfutils-devel mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/elfutils-devel
