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 diff -durN -x '*~' device-mapper.1.01.03.orig/dmsetup/Makefile.in device-mapper.1.01.03/dmsetup/Makefile.in
22 --- device-mapper.1.01.03.orig/dmsetup/Makefile.in 2005-01-27 17:16:52.000000000 +0100
23 +++ device-mapper.1.01.03/dmsetup/Makefile.in 2005-07-31 19:10:13.000000000 +0200
25 top_srcdir = @top_srcdir@
28 +ifeq ("@DYNAMIC_LINK@", "yes")
30 INSTALL_TYPE = install_dynamic
33 ifeq ("@STATIC_LINK@", "yes")
34 TARGETS += dmsetup.static
35 diff -durN -x '*~' device-mapper.1.01.03.orig/lib/Makefile.in device-mapper.1.01.03/lib/Makefile.in
36 --- device-mapper.1.01.03.orig/lib/Makefile.in 2005-04-28 00:32:00.000000000 +0200
37 +++ device-mapper.1.01.03/lib/Makefile.in 2005-07-31 19:10:13.000000000 +0200
39 .PHONY: install_dynamic install_static \
40 install_fs install_ioctl install_ioctl_static
42 +ifeq ("@DYNAMIC_LINK@", "yes")
43 INSTALL_TYPE = install_dynamic
46 ifeq ("@STATIC_LINK@", "yes")
47 INSTALL_TYPE += install_static
48 --- device-mapper.1.02.07/make.tmpl.in.orig 2006-05-10 21:38:25.000000000 +0200
49 +++ device-mapper.1.02.07/make.tmpl.in 2006-05-17 19:11:38.814962000 +0200
51 .PHONY: $(SUBDIRS) $(SUBDIRS.install) $(SUBDIRS.clean) $(SUBDIRS.distclean)
52 .PHONY: $(SUBDIRS.pofile)
54 +ifeq ("@DYNAMIC_LINK@", "yes")
55 TARGETS += $(LIB_SHARED) $(LIB_STATIC)
57 +TARGETS += $(LIB_STATIC)
60 all: $(SUBDIRS) $(TARGETS)