File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,10 @@ AC_DEFUN([OPAL_CONFIG_HWLOC], [
92
92
[ opal_hwloc_WRAPPER_LDFLAGS="$pkg_config_ldflags"
93
93
opal_hwloc_WRAPPER_LIBS="$pkg_config_libs"] ,
94
94
[ # guess that what we have from compiling OMPI is good enough
95
- opal_hwloc_WRAPPER_LDFLAGS="$opal_hwloc_LDFLAGS"
96
- opal_hwloc_WRAPPER_LIBS="$opal_hwloc_LIBS"] )
95
+ AS_IF ( [ test -z "$opal_hwloc_WRAPPER_LDFLAGS"] ,
96
+ [ opal_hwloc_WRAPPER_LDFLAGS="$opal_hwloc_LDFLAGS"] )
97
+ AS_IF ( [ test -z "$opal_hwloc_WRAPPER_LIBS"] ,
98
+ [ opal_hwloc_WRAPPER_LIBS="$opal_hwloc_LIBS"] ) ] )
97
99
98
100
OPAL_WRAPPER_FLAGS_ADD([ LDFLAGS] , [ $opal_hwloc_WRAPPER_LDFLAGS] )
99
101
OPAL_WRAPPER_FLAGS_ADD([ LIBS] , [ $opal_hwloc_WRAPPER_LIBS] )
@@ -199,6 +201,7 @@ AC_DEFUN([_OPAL_CONFIG_HWLOC_INTERNAL], [
199
201
# our tree and in the mean time are referenced by their .la
200
202
# files.
201
203
opal_hwloc_LIBS="$OMPI_TOP_BUILDDIR/$internal_hwloc_location/hwloc/libhwloc.la"
204
+ opal_hwloc_WRAPPER_LIBS="-lhwloc"
202
205
203
206
opal_hwloc_header="$OMPI_TOP_BUILDDIR/$internal_hwloc_location/include/hwloc.h"
204
207
Original file line number Diff line number Diff line change @@ -103,8 +103,10 @@ AC_DEFUN([OPAL_CONFIG_LIBEVENT], [
103
103
opal_libevent_WRAPPER_LIBS="$pkg_config_pthreads_libs"
104
104
OPAL_FLAGS_APPEND_MOVE([ opal_libevent_WRAPPER_LIBS] , [ $pkg_config_core_libs] )] ,
105
105
[ # guess that what we have from compiling OMPI is good enough
106
- opal_libevent_WRAPPER_LDFLAGS="$opal_libevent_LDFLAGS"
107
- opal_libevent_WRAPPER_LIBS="$opal_libevent_LIBS"] )
106
+ AS_IF ( [ test -z "$opal_libevent_WRAPPER_LDFLAGS"] ,
107
+ [ opal_libevent_WRAPPER_LDFLAGS="$opal_libevent_LDFLAGS"] )
108
+ AS_IF ( [ test -z "$opal_libevent_WRAPPER_LIBS"] ,
109
+ [ opal_libevent_WRAPPER_LIBS="$opal_libevent_LIBS"] ) ] )
108
110
109
111
OPAL_WRAPPER_FLAGS_ADD([ LDFLAGS] , [ $opal_libevent_WRAPPER_LDFLAGS] )
110
112
OPAL_WRAPPER_FLAGS_ADD([ LIBS] , [ $opal_libevent_WRAPPER_LIBS] )
@@ -239,6 +241,7 @@ AC_DEFUN([_OPAL_CONFIG_LIBEVENT_INTERNAL], [
239
241
# our tree and in the mean time are referenced by their .la
240
242
# files.
241
243
opal_libevent_LIBS="$OMPI_TOP_BUILDDIR/$internal_libevent_location/libevent_core.la $OMPI_TOP_BUILDDIR/$internal_libevent_location/libevent_pthreads.la"
244
+ opal_libevent_WRAPPER_LIBS="-levent_core -levent_pthreads"
242
245
243
246
opal_libevent_header="$OMPI_TOP_BUILDDIR/$internal_libevent_location/event.h"
244
247
You can’t perform that action at this time.
0 commit comments