Skip to content

Commit eccf0ff

Browse files
committed
hwloc/external: set WRAPPER_EXTRA_* vars in proper location
WRAPPER_EXTRA flags are checked *before* the POST_CONFIG macro is invoked. So set them in the main CONFIG macro. Signed-off-by: Jeff Squyres <[email protected]>
1 parent ef3ee02 commit eccf0ff

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

opal/mca/hwloc/external/configure.m4

Lines changed: 12 additions & 11 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-2016 Cisco Systems, Inc. All rights reserved.
44
# Copyright (c) 2014 Research Organization for Information Science
55
# and Technology (RIST). All rights reserved.
66
#
@@ -67,16 +67,6 @@ AC_DEFUN([MCA_opal_hwloc_external_POST_CONFIG],[
6767
AC_DEFINE_UNQUOTED(MCA_hwloc_external_openfabrics_header,
6868
["$opal_hwloc_dir/include/hwloc/openfabrics-verbs.h"],
6969
[Location of external hwloc header])
70-
71-
# These flags need to get passed to the wrapper compilers
72-
# (this is unnecessary for the internal/embedded hwloc)
73-
74-
# Finally, add some flags to the wrapper compiler if we're
75-
# building with developer headers so that our headers can
76-
# be found.
77-
hwloc_external_WRAPPER_EXTRA_CPPFLAGS=$opal_hwloc_external_CPPFLAGS
78-
hwloc_external_WRAPPER_EXTRA_LDFLAGS=$opal_hwloc_external_LDFLAGS
79-
hwloc_external_WRAPPER_EXTRA_LIBS=$opal_hwloc_external_LIBS
8070
])
8171
OPAL_VAR_SCOPE_POP
8272
])dnl
@@ -198,6 +188,17 @@ AC_DEFUN([MCA_opal_hwloc_external_CONFIG],[
198188
Cannot continue])])
199189
AS_IF([test "$opal_hwloc_dir" != ""],
200190
[CFLAGS=$opal_hwloc_external_CFLAGS_save])
191+
192+
# These flags need to get passed to the wrapper compilers
193+
# (this is unnecessary for the internal/embedded hwloc)
194+
195+
# Finally, add some flags to the wrapper compiler if we're
196+
# building with developer headers so that our headers can
197+
# be found.
198+
hwloc_external_WRAPPER_EXTRA_CPPFLAGS=$opal_hwloc_external_CPPFLAGS
199+
hwloc_external_WRAPPER_EXTRA_LDFLAGS=$opal_hwloc_external_LDFLAGS
200+
hwloc_external_WRAPPER_EXTRA_LIBS=$opal_hwloc_external_LIBS
201+
201202
$1],
202203
[$2])
203204

0 commit comments

Comments
 (0)