From: Dave Jiang <djiang@mvista.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] building LVM2 static fails
Date: Fri, 04 Nov 2005 12:18:36 -0700 [thread overview]
Message-ID: <436BB40C.6020601@mvista.com> (raw)
Has anyone compiled LVM2 successfully with static linking?
./configure --enable-static_link
gcc -o lvm.static dumpconfig.o formats.o lvchange.o lvconvert.o
lvcreate.o lvdisplay.o lvextend.o lvmchange.o lvmcmdline.o lvmdiskscan.o
lvreduce.o lvremove.o lvrename.o lvresize.o lvscan.o polldaemon.o
pvchange.o pvcreate.o pvdisplay.o pvmove.o pvremove.o pvscan.o
reporter.o segtypes.o toollib.o vgcfgbackup.o vgcfgrestore.o vgchange.o
vgck.o vgcreate.o vgconvert.o vgdisplay.o vgexport.o vgextend.o
vgimport.o vgmerge.o vgmknodes.o vgreduce.o vgremove.o vgrename.o
vgscan.o vgsplit.o lvm-static.o -static -Wl,--export-dynamic -L../lib
-L/lib -llvm -ldevmapper \
-ldl -rdynamic
/usr/bin/ld: cannot find -ldevmapper
collect2: ld returned 1 exit status
make[1]: *** [lvm.static] Error 1
make[1]: *** Waiting for unfinished jobs....
Why is autoconf still attempting dynamic linking while with -static? I
can build successfully without --enable-static_link.
--
------------------------------------------------------
Dave Jiang
Software Engineer, Carrier Grade Software
MontaVista Software, Inc.
http://www.mvista.com
------------------------------------------------------
next reply other threads:[~2005-11-04 19:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-04 19:18 Dave Jiang [this message]
2005-11-04 22:42 ` [linux-lvm] building LVM2 static fails Alasdair G Kergon
2005-11-04 22:45 ` Alasdair G Kergon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=436BB40C.6020601@mvista.com \
--to=djiang@mvista.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.