When sys-fs/lvm2-2.02.88 is installed with USE="-static-libs" and you try to build sys-fs/cryptsetup-1.2.0-r1 with USE="static" you get the following build failure: libtool: link: x86_64-pc-linux-gnu-gcc -Wall -march=core2 -msse -msse2 -msse3 -msse4.1 -O2 -pipe -fomit-frame-pointer -static -Wl,-O1 -o cryptsetup.static cryptsetup_static-utils_crypt.o cryptsetup_static-cryptsetup.o -Wl,--as-needed ../lib/.libs/libcryptsetup.a -L/lib64 -L/usr/lib64 -lpopt /usr/lib64/libgcrypt.a /usr/lib64/libgpg-error.a -ldevmapper /usr/lib64/libudev.a -lrt -luuid /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ldevmapper collect2: ld returned 1 exit status After rebuilding sys-fs/lvm2 with USE="static-libs" the problem is gone. Please add the following DEPEND to sys-fs/cryptsetup: DEPEND=".. static? ( .. || ( >=sys-fs/lvm2-2.02.88[static-libs] <sys-fs/lvm2-2.02.88 ) .. ) .."
should be all set now in the tree; thanks for the report! Commit message: Simplify deps a little more, and require static-libs with lvm2 http://sources.gentoo.org/sys-fs/cryptsetup/cryptsetup-1.2.0-r1.ebuild?r1=1.8&r2=1.9