Loading debian/patches/fix_linking.patch +12 −3 Original line number Diff line number Diff line Loading @@ -24,14 +24,23 @@ $(LD) --slib --vers $(SRCDIR)/libncbi-vdb.vers -o $@ $(VDB_LIB) --- a/build/ld.linux.dlib.sh +++ b/build/ld.linux.dlib.sh @@ -286,6 +292,12 @@ then @@ -286,6 +286,21 @@ then CMD="$CMD -lm" fi +# kdf5 lib needs extra libraries at the **end** of the linker line +if pwd | grep -q "libs/hdf5$" ; then + echo "Try to add extra libs to LDFLAGS ... unfortunately this fails as well" + echo CMD="$CMD -lkproc -lkfs -lkdb -lkns -lkfg" + echo "Try to add extra libs to LDFLAGS for libkdf5" + CMD="$CMD -lkfs -lkq -lkproc -lkdb -lkns -lkfg -lksproc -lmbedx509 -lmbedtls -lmbedcrypto -lz" +fi + +# diagnose lib needs extra libraries at the **end** of the linker line +if pwd | grep -q "libs/diagnose$" ; then + echo "Try to add extra libs to LDFLAGS for libdiagnose" + echo "FIXME: May be this should rather be a substitution of CMD since -lmbedx509 -lmbedtls -lmbedcrypto and others are now duplicated." + echo " The end of the option string should be:" + echo " .../dbg/ilib -lbz2 -lm -lvfs -lkfg -lkfs -lkfg -lvfs -lkq -lkns -lmbedx509 -lmbedtls -lmbedcrypto -lkproc -lz -ldl -lkrypto -lklib -lkfs -lascp -lksproc -lpthread" + CMD="$CMD -lvfs -lkfg -lkfs -lkfg -lvfs -lkq -lkns -lmbedx509 -lmbedtls -lmbedcrypto -lkproc -lz -ldl -lkrypto -lklib -lkfs -lascp -lksproc -lpthread" +fi + # produce shared library Loading Loading
debian/patches/fix_linking.patch +12 −3 Original line number Diff line number Diff line Loading @@ -24,14 +24,23 @@ $(LD) --slib --vers $(SRCDIR)/libncbi-vdb.vers -o $@ $(VDB_LIB) --- a/build/ld.linux.dlib.sh +++ b/build/ld.linux.dlib.sh @@ -286,6 +292,12 @@ then @@ -286,6 +286,21 @@ then CMD="$CMD -lm" fi +# kdf5 lib needs extra libraries at the **end** of the linker line +if pwd | grep -q "libs/hdf5$" ; then + echo "Try to add extra libs to LDFLAGS ... unfortunately this fails as well" + echo CMD="$CMD -lkproc -lkfs -lkdb -lkns -lkfg" + echo "Try to add extra libs to LDFLAGS for libkdf5" + CMD="$CMD -lkfs -lkq -lkproc -lkdb -lkns -lkfg -lksproc -lmbedx509 -lmbedtls -lmbedcrypto -lz" +fi + +# diagnose lib needs extra libraries at the **end** of the linker line +if pwd | grep -q "libs/diagnose$" ; then + echo "Try to add extra libs to LDFLAGS for libdiagnose" + echo "FIXME: May be this should rather be a substitution of CMD since -lmbedx509 -lmbedtls -lmbedcrypto and others are now duplicated." + echo " The end of the option string should be:" + echo " .../dbg/ilib -lbz2 -lm -lvfs -lkfg -lkfs -lkfg -lvfs -lkq -lkns -lmbedx509 -lmbedtls -lmbedcrypto -lkproc -lz -ldl -lkrypto -lklib -lkfs -lascp -lksproc -lpthread" + CMD="$CMD -lvfs -lkfg -lkfs -lkfg -lvfs -lkq -lkns -lmbedx509 -lmbedtls -lmbedcrypto -lkproc -lz -ldl -lkrypto -lklib -lkfs -lascp -lksproc -lpthread" +fi + # produce shared library Loading