Skip to content

Commit 3806441

Browse files
Support building with DAOS on Debian based systems
A hard-coded library path of .../lib64 is being assumed for the library location for DAOS. This is unportable and does not work on Debian based distros. Instead, try to figure out if .../lib64 is the correct location or .../lib/x86_64-linux-gnu is correct. Signed-off-by: Brian J. Murrell <[email protected]>
1 parent 7d019dc commit 3806441

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

configure.ac

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,12 @@ AC_ARG_WITH([daos],
336336
[], [with_daos=no])
337337
AS_IF([test "x$with_daos" != xno], [
338338
DAOS="yes"
339-
LDFLAGS="$LDFLAGS -L$with_daos/lib64 -Wl,--enable-new-dtags -Wl,-rpath=$with_daos/lib64"
339+
if test -d $with_daos/lib/x86_64-linux-gnu/; then
340+
DAOS_LIB_DIR=$with_daos/lib/x86_64-linux-gnu
341+
else
342+
DAOS_LIB_DIR=$with_daos/lib64
343+
fi
344+
LDFLAGS="$LDFLAGS -L$DAOS_LIB_DIR -Wl,--enable-new-dtags -Wl,-rpath=$DAOS_LIB_DIR"
340345
CPPFLAGS="$CPPFLAGS -I$with_daos/include"
341346
AC_CHECK_HEADERS(gurt/common.h,, [unset DAOS])
342347
AC_CHECK_HEADERS(daos.h,, [unset DAOS])

0 commit comments

Comments
 (0)