1 diff -durN -x '*~' device-mapper.1.01.03.orig/configure.in device-mapper.1.01.03/configure.in
2 --- device-mapper.1.01.03.orig/configure.in 2005-06-13 16:07:29.000000000 +0200
3 +++ device-mapper.1.01.03/configure.in 2005-07-31 19:10:30.000000000 +0200
5 dnl -- Enables staticly-linked tools
6 AC_ARG_ENABLE(static_link, [ --enable-static_link Use this to link the tools to their libraries
7 statically. Default is dynamic linking], STATIC_LINK=$enableval, STATIC_LINK=no)
8 +AC_ARG_ENABLE(dynamic_link, [ --disable-dynamic_link Use this not to link the tools to their libraries
9 + statically. Default is dynamic linking], DYNAMIC_LINK=$enableval, DYNAMIC_LINK=yes)
11 ################################################################################
12 dnl -- Clear default exec_prefix - install into /sbin rather than /usr/sbin
14 ################################################################################
17 +AC_SUBST(DYNAMIC_LINK)
21 --- device-mapper.1.02.23/dmsetup/Makefile.in.orig 2007-08-21 22:32:30.000000000 +0200
22 +++ device-mapper.1.02.23/dmsetup/Makefile.in 2007-12-16 23:07:07.095562047 +0100
24 top_srcdir = @top_srcdir@
27 +ifeq ("@DYNAMIC_LINK@", "yes")
29 INSTALL_TYPE = install_dynamic
31 LIB_PTHREAD = @LIB_PTHREAD@
33 ifeq ("@STATIC_LINK@", "yes")
34 diff -durN -x '*~' device-mapper.1.01.03.orig/lib/Makefile.in device-mapper.1.01.03/lib/Makefile.in
35 --- device-mapper.1.01.03.orig/lib/Makefile.in 2005-04-28 00:32:00.000000000 +0200
36 +++ device-mapper.1.01.03/lib/Makefile.in 2005-07-31 19:10:13.000000000 +0200
38 .PHONY: install_dynamic install_static \
39 install_fs install_ioctl install_ioctl_static
41 +ifeq ("@DYNAMIC_LINK@", "yes")
42 INSTALL_TYPE = install_dynamic
45 ifeq ("@STATIC_LINK@", "yes")
46 INSTALL_TYPE += install_static
47 --- device-mapper.1.02.23/make.tmpl.in.orig 2007-10-03 12:48:27.000000000 +0200
48 +++ device-mapper.1.02.23/make.tmpl.in 2007-12-16 23:06:42.922184485 +0100
50 .PHONY: $(SUBDIRS) $(SUBDIRS.install) $(SUBDIRS.clean) $(SUBDIRS.distclean)
51 .PHONY: $(SUBDIRS.pofile)
53 +ifeq ("@DYNAMIC_LINK@", "yes")
54 TARGETS += $(LIB_SHARED) $(LIB_STATIC) $(VERSIONED_SHLIB)
56 +TARGETS += $(LIB_STATIC)
59 all: $(SUBDIRS) $(TARGETS)