A Gentoo install still in the livecd stage (unable to boot so far) fails to emerge LVM statically. I need a statically compiled lvm in order to use it in my initrd.
My make.conf:
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
USE="bindist mmx sse sse2 static"
The emerge compile error:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(time-util.o): In function `now': (.text.now+0x8): undefined reference to `clock_gettime'
I also note that:
- Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with
- their static versions. If you need the static binaries,
- you must append .static to the filename!
What does this mean? How am I supposed to append this ".static" to the filename?
I see that this person had the same issue, but with no answer: http://archives.gentoo.org/gentoo-user/msg_eb40f5d76161fda72d134551cc26d989.xml
I also notice this thread: http://forums.gentoo.org/viewtopic-p-4892618.html?sid=e41b07d9b8554c10430619e1f51d564a
I tried export LDFLAGS=" -lrt "
However it didn't appear to change anything, still the same error.