aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-12-20 14:53:16 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2017-12-20 14:53:16 -0800
commit10b971c5299a4e4303eab5b594a96636cd234c98 (patch)
tree6afe1694f5307d9cf5cc126d24615734333175c3 /gen_compile.sh
parentgen_cmdline: make --mdadm local binary requirement less strict (diff)
downloadgenkernel-10b971c5299a4e4303eab5b594a96636cd234c98.tar.gz
genkernel-10b971c5299a4e4303eab5b594a96636cd234c98.tar.bz2
genkernel-10b971c5299a4e4303eab5b594a96636cd234c98.zip
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@gentoo.org> Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'gen_compile.sh')
-rwxr-xr-xgen_compile.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/gen_compile.sh b/gen_compile.sh
index 02f3de51..c2870542 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 ||