|  | 
| 1 | 1 | # -*- shell-script -*- | 
| 2 | 2 | # | 
| 3 |  | -# Copyright (c) 2009-2015 Cisco Systems, Inc.  All rights reserved. | 
|  | 3 | +# Copyright (c) 2009-2016 Cisco Systems, Inc.  All rights reserved. | 
| 4 | 4 | # Copyright (c) 2014      Research Organization for Information Science | 
| 5 | 5 | #                         and Technology (RIST). All rights reserved. | 
| 6 | 6 | # | 
| @@ -67,16 +67,6 @@ AC_DEFUN([MCA_opal_hwloc_external_POST_CONFIG],[ | 
| 67 | 67 |            AC_DEFINE_UNQUOTED(MCA_hwloc_external_openfabrics_header, | 
| 68 | 68 |                   ["$opal_hwloc_dir/include/hwloc/openfabrics-verbs.h"], | 
| 69 | 69 |                   [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 | 
| 80 | 70 |           ]) | 
| 81 | 71 |     OPAL_VAR_SCOPE_POP | 
| 82 | 72 | ])dnl | 
| @@ -198,6 +188,17 @@ AC_DEFUN([MCA_opal_hwloc_external_CONFIG],[ | 
| 198 | 188 | Cannot continue])]) | 
| 199 | 189 |            AS_IF([test "$opal_hwloc_dir" != ""], | 
| 200 | 190 |                  [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 | + | 
| 201 | 202 |            $1], | 
| 202 | 203 |           [$2]) | 
| 203 | 204 | 
 | 
|  | 
0 commit comments