Skip to content

Commit fdf960e

Browse files
committed
Adjusted cf3_with_library to handle case where --with-feature is not defined
In the case of pam and lmdb, due to checks for brew, --with-pam and --with-lmdb, if not specified by the user, are not defined. This resulted in -R/lib being added to LMDB_LDFLAGS and PAM_LDFLAGS and by appending: CORE_LDFLAGS. This -R/lib adds an RPATH which rhel-10 rpmbuild complains about since it is a standard path that should not be included in RPATHS. Ticket: ENT-13016 Changelog: none (cherry picked from commit 2264624)
1 parent 46c8cf1 commit fdf960e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

m4/cf3_with_library.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ AC_DEFUN([CF3_WITH_LIBRARY],
8484
if test "x$with_[$1]" != xyes &&
8585
test "x$with_[$1]" != xcheck &&
8686
test "x$with_[$1]" != x/usr &&
87-
test "x$with_[$1]" != x/
87+
test "x$with_[$1]" != x/ &&
88+
test -n "$with_[$1]"
8889
then
8990
ULN[]_LDFLAGS="$ULN[]_LDFLAGS -R$with_[$1]/lib"
9091
fi

0 commit comments

Comments
 (0)