commit:     10b971c5299a4e4303eab5b594a96636cd234c98
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 20 22:53:16 2017 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Wed Dec 20 22:53:16 2017 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=10b971c5

gen_compile: fix dmraid lvm linking

This will hopefully fix dmraid linking against newer LVM.

Bug: https://bugs.gentoo.org/631368
Suggested-by: Ian Stakenvicius <axs <AT> gentoo.org>
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 gen_compile.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gen_compile.sh b/gen_compile.sh
index 02f3de5..c287054 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -632,7 +632,8 @@ compile_dmraid() {
                CFLAGS="-I${TEMP}/lvm/include" \
                DEVMAPPEREVENT_CFLAGS="-I${TEMP}/lvm/include" \
                CPPFLAGS="-I${TEMP}/lvm/include" \
-               LIBS="-ldevmapper" \
+               LIBS="-ldevmapper -lm -lrt -lpthread" \
+               LDFLAGS='-Wl,--no-as-needed' \
                ./configure --enable-static_link \
                        --with-devmapper-prefix="${TEMP}/lvm" \
                        --prefix=${TEMP}/dmraid >> ${LOGFILE} 2>&1 ||

Reply via email to