Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] Patches for 0.8.1
@ 2000-12-16 18:51 Russell Coker
  2000-12-17 10:04 ` Luca Berra
  2000-12-18 16:29 ` lewis
  0 siblings, 2 replies; 3+ messages in thread
From: Russell Coker @ 2000-12-16 18:51 UTC (permalink / raw)
  To: linux-lvm

This one removes an unnecessary library check (which doesn't work) and adds 
version data to the config file (this is so handy).

--- lvm-0.8.orig/configure.in   Sun Nov 12 19:52:12 2000
+++ lvm-0.8.1/configure.in      Sat Dec 16 16:02:54 2000
@@ -31,10 +31,6 @@
 AC_PROG_LN_S
 AC_PROG_MAKE_SET
 
-dnl Checks for libraries.
-dnl Replace `main' with a function in -llvm:
-AC_CHECK_LIB(lvm, main)
-
 dnl Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_STDC
@@ -58,6 +54,9 @@
 AC_CHECK_FUNCS(mkdir rmdir uname)
 
 AC_SUBST(JOBS)
+
+AC_SUBST(VERSION)
+VERSION=0.8final
 
 dnl First and last lines should not contain files to generate in order to
 dnl keep utility scripts running properly

The following makes it the library compile as a versioned shared object 
(allowing multiple versions to be on the machine at the same time).
Later I'll submit a patch that adds this and a ./configure option to select 
shared object or static linking.

diff -ru lvm-0.8.orig/tools/lib/Makefile.in lvm-0.8.1/tools/lib/Makefile.in
--- lvm-0.8.orig/tools/lib/Makefile.in  Sun Nov 12 19:52:12 2000
+++ lvm-0.8.1/tools/lib/Makefile.in     Sat Dec 16 16:12:08 2000
@@ -30,11 +30,14 @@
 
 include ../../make.tmpl
 include ../tools_and_lib.make.tmpl
+CFLAGS += -fPIC
 
+VERSION=@VERSION@
 ARCHIVE = liblvm.a
-SO = liblvm.so
+BASESO = liblvm.so
+SO = ${BASESO}.${VERSION}
 
-ALL_RM = $(ALL_OBJECTS) $(ARCHIVE) $(SO)
+ALL_RM = $(ALL_OBJECTS) $(ARCHIVE) $(SO) ${BASESO}
 
 all_this: $(ARCHIVE) $(SO) Makefile
        @echo ""
@@ -45,9 +48,10 @@
        @echo "*** Installing $(ARCHIVE) and $(SO) in ${prefix}/lib ***"
        @rm -f ${libdir}/${SO} ${libdir}/$(ARCHIVE);
        @INSTALL@ -d ${libdir}
-       @INSTALL@ $(ARCHIVE) $(SO) ${libdir}
-       chmod 444 ${libdir}/$(ARCHIVE)
+       @INSTALL@ $(SO) ${libdir}
        chmod 555 ${libdir}/$(SO)
+#      @INSTALL@ $(ARCHIVE) ${libdir}
+#      chmod 444 ${libdir}/$(ARCHIVE)
 
 remove_this:
        @echo "*** Removing $(ARCHIVE) and $(SO) in ${prefix}/lib ***"
@@ -64,7 +68,8 @@
        ranlib $@
 
 $(SO): $(ALL_OBJECTS)
-       ld -shared -o $(SO) $(ALL_OBJECTS)
+       ld -shared -soname=${SO} -o $(SO) $(ALL_OBJECTS)
+       ln -sf ${SO} ${BASESO}
 
 clean_this:
        rm -f $(ALL_RM)




-- 
http://www.coker.com.au/bonnie++/     Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/       Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/     My home page

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] Patches for 0.8.1
  2000-12-16 18:51 [linux-lvm] Patches for 0.8.1 Russell Coker
@ 2000-12-17 10:04 ` Luca Berra
  2000-12-18 16:29 ` lewis
  1 sibling, 0 replies; 3+ messages in thread
From: Luca Berra @ 2000-12-17 10:04 UTC (permalink / raw)
  To: linux-lvm

>  
>  $(SO): $(ALL_OBJECTS)
> -       ld -shared -o $(SO) $(ALL_OBJECTS)
> +       ld -shared -soname=${SO} -o $(SO) $(ALL_OBJECTS)
> +       ln -sf ${SO} ${BASESO}

i thought it was better to use 'gcc -shared -Wl,-soname,${SO}' to link
shared libraries, especially under libc6

L.
-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] Patches for 0.8.1
  2000-12-16 18:51 [linux-lvm] Patches for 0.8.1 Russell Coker
  2000-12-17 10:04 ` Luca Berra
@ 2000-12-18 16:29 ` lewis
  1 sibling, 0 replies; 3+ messages in thread
From: lewis @ 2000-12-18 16:29 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1041 bytes --]

On Sat, Dec 16, 2000 at 07:51:42PM +0100, Russell Coker wrote:
> This one removes an unnecessary library check (which doesn't work) and adds 
> version data to the config file (this is so handy).

Now we just have to make sure we rev the version number before a release.  ;)

> +AC_SUBST(VERSION)
> +VERSION=0.8final

Shouldn't this be '+VERSION=0.8.1'?

I'm not going to put this completely in until we get the ./configure stuff
worked out, but I'll hand apply most of it to the 'LVM_0-9-patches' and
'LVM_0-8-1-patches' tagged version of the CVS.  Make sure you're working with
those as you continue.

Thanks,
-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-379-3951
1313 5th St SE, Suite 111              Fax:    612-379-3952
Minneapolis, MN 55414                  E-Mail: lewis@sistina.com
http://www.sistina.com
Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648

I have yet to meet a C compiler that is more friendly and easier to use
than eating soup with a knife.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-12-18 16:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-16 18:51 [linux-lvm] Patches for 0.8.1 Russell Coker
2000-12-17 10:04 ` Luca Berra
2000-12-18 16:29 ` lewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox