Skip to content

Commit 4e5f79b

Browse files
committed
dl/dlopen: add libs to wrapper LIBS
With this, libs (e.g., "-ldl") are not added to the wrapper LIBS flags. This may work on some platforms, but on at least RHEL 7.3, it does not (i.e., compiling MPI applications fails because it can't find dlopen). Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit a054361)
1 parent c56ff64 commit 4e5f79b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

opal/mca/dl/dlopen/configure.m4

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- shell-script -*-
22
#
3-
# Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved.
3+
# Copyright (c) 2009-2017 Cisco Systems, Inc. All rights reserved
44
#
55
# $COPYRIGHT$
66
#
@@ -47,7 +47,8 @@ AC_DEFUN([MCA_opal_dl_dlopen_CONFIG],[
4747
])
4848

4949
AS_IF([test "$opal_dl_dlopen_happy" = "yes"],
50-
[opal_dl_dlopen_ADD_LIBS=$opal_dl_dlopen_LIBS
50+
[dl_dlopen_ADD_LIBS=$opal_dl_dlopen_LIBS
51+
dl_dlopen_WRAPPER_EXTRA_LIBS=$opal_dl_dlopen_LIBS
5152
$1],
5253
[$2])
5354

0 commit comments

Comments
 (0)