Skip to content

Commit 22d8fa1

Browse files
committed
event/external: Fix typo in LDFLAGS vs LIBS var before check
* This should have been `LDFLAGS` not `LIBS`. Either works, but `LDFLAGS` is more correct. We should also include `CPPFLAGS` just in case the header is important to the check. Signed-off-by: Joshua Hursey <[email protected]>
1 parent a45c017 commit 22d8fa1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

opal/mca/event/external/configure.m4

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# and Technology (RIST). All rights reserved.
77
#
88
# Copyright (c) 2017-2018 Intel, Inc. All rights reserved.
9+
# Copyright (c) 2020 IBM Corporation. All rights reserved.
910
# $COPYRIGHT$
1011
#
1112
# Additional copyrights may follow
@@ -115,11 +116,15 @@ AC_DEFUN([MCA_opal_event_external_CONFIG],[
115116
[opal_event_external_support=yes],
116117
[opal_event_external_support=no])
117118

119+
AS_IF([test "$opal_event_external_support" = "yes"],
120+
[LDFLAGS="$opal_event_external_LDFLAGS $LDFLAGS"
121+
CPPFLAGS="$opal_event_external_CPPFLAGS $CPPFLAGS"],
122+
[])
123+
118124
AS_IF([test "$opal_event_external_support" = "yes"],
119125
[# Ensure that this libevent has the symbol
120126
# "evthread_set_lock_callbacks", which will only exist if
121127
# libevent was configured with thread support.
122-
LIBS="$opal_event_external_LDFLAGS $LIBS"
123128
AC_CHECK_LIB([event], [evthread_set_lock_callbacks],
124129
[],
125130
[AC_MSG_WARN([External libevent does not have thread support])

0 commit comments

Comments
 (0)