Skip to content

Commit b666c40

Browse files
authored
Merge pull request #474 from brianjmurrell/patch-1
Support building with DAOS on Debian based systems
2 parents 7d019dc + 3806441 commit b666c40

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)