Here is LVM support for OpenWRT. It introduces 3 new packages:
[openwrt/svn-archive/archive.git] / utils / lvm2 / patches / 100-readline-link.patch
1 === modified file 'LVM2.2.02.43/make.tmpl.in'
2 --- LVM2.2.02.43/make.tmpl.in 2009-01-16 15:02:27 +0000
3 +++ LVM2.2.02.43/make.tmpl.in 2009-01-16 15:02:45 +0000
4 @@ -84,11 +84,9 @@
5 endif
6
7 LDFLAGS += -L$(top_srcdir)/libdm -L$(top_srcdir)/lib
8 -CLDFLAGS += -L$(top_srcdir)/libdm -L$(top_srcdir)/lib
9
10 ifeq ("@DMEVENTD@", "yes")
11 LDFLAGS += -L$(top_srcdir)/daemons/dmeventd
12 - CLDFLAGS += -L$(top_srcdir)/daemons/dmeventd
13 endif
14
15 ifeq ("@DM_COMPAT@", "yes")
16 @@ -202,18 +200,18 @@
17 ifeq ("@LIB_SUFFIX@","so")
18 $(LIB_SHARED): $(OBJECTS) $(LDDEPS)
19 $(CC) -shared -Wl,-soname,$(notdir $@).$(LIB_VERSION) \
20 - $(CFLAGS) $(CLDFLAGS) $(OBJECTS) $(LIBS) -o $@
21 + $(CFLAGS) $(CLDFLAGS) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
22 endif
23
24 ifeq ("@LIB_SUFFIX@","dylib")
25 $(LIB_SHARED): $(OBJECTS) $(LDDEPS)
26 $(CC) -dynamiclib -dylib_current_version,$(LIB_VERSION) \
27 - $(CFLAGS) $(CLDFLAGS) $(OBJECTS) $(LIBS) -o $@
28 + $(CFLAGS) $(CLDFLAGS) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
29 endif
30
31 %.so: %.a
32 $(CC) -shared -Wl,-soname,$(notdir $@).$(LIB_VERSION) \
33 - $(CFLAGS) $(CLDFLAGS) $(LIBS) -o $@ \
34 + $(CFLAGS) $(CLDFLAGS) $(LDFLAGS) $(LIBS) -o $@ \
35 @CLDWHOLEARCHIVE@ $< @CLDNOWHOLEARCHIVE@
36
37 $(LIB_STATIC): $(OBJECTS)
38