forked from pool/ocfs2-tools
b08edf399e
Copy from network:ha-clustering:Factory/ocfs2-tools based on submit request 42253 from user tserong OBS-URL: https://build.opensuse.org/request/show/42253 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ocfs2-tools?expand=0&rev=25
33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
Index: ocfs2-tools/configure.in
|
|
===================================================================
|
|
--- ocfs2-tools.orig/configure.in
|
|
+++ ocfs2-tools/configure.in
|
|
@@ -255,9 +255,12 @@ if test "x$cpg_found" = "xyes"; then
|
|
# TRY="$TRY"
|
|
|
|
saved_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS $TRY -lcpg"
|
|
+ saved_LIBS="$LIBS"
|
|
+ LDFLAGS="$LDFLAGS $TRY"
|
|
+ LIBS="-lcpg"
|
|
AC_LINK_IFELSE([AC_LANG_CALL([], [cpg_initialize])],
|
|
cpg_found=yes)
|
|
+ LIBS="$saved_LIBS"
|
|
LDFLAGS="$saved_LDFLAGS"
|
|
|
|
if test "x$cpg_found" = "xyes"; then
|
|
@@ -294,9 +297,12 @@ if test "x$ckpt_found" = "xyes"; then
|
|
# TRY="$TRY"
|
|
|
|
saved_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS $TRY -lSaCkpt"
|
|
+ saved_LIBS="$LIBS"
|
|
+ LDFLAGS="$LDFLAGS $TRY"
|
|
+ LIBS="-lSaCkpt"
|
|
AC_LINK_IFELSE([AC_LANG_CALL([], [saCkptInitialize])],
|
|
ckpt_found=yes)
|
|
+ LIBS="$saved_LIBS"
|
|
LDFLAGS="$saved_LDFLAGS"
|
|
|
|
if test "x$ckpt_found" = "xyes"; then
|