|
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 |
@@ -183,6 +173,17 @@ AC_DEFUN([MCA_opal_hwloc_external_CONFIG],[ |
183 | 173 | AC_MSG_ERROR([Cannot continue])]) |
184 | 174 | AS_IF([test "$opal_hwloc_dir" != ""], |
185 | 175 | [CFLAGS=$opal_hwloc_external_CFLAGS_save]) |
| 176 | + |
| 177 | + # These flags need to get passed to the wrapper compilers |
| 178 | + # (this is unnecessary for the internal/embedded hwloc) |
| 179 | + |
| 180 | + # Finally, add some flags to the wrapper compiler if we're |
| 181 | + # building with developer headers so that our headers can |
| 182 | + # be found. |
| 183 | + hwloc_external_WRAPPER_EXTRA_CPPFLAGS=$opal_hwloc_external_CPPFLAGS |
| 184 | + hwloc_external_WRAPPER_EXTRA_LDFLAGS=$opal_hwloc_external_LDFLAGS |
| 185 | + hwloc_external_WRAPPER_EXTRA_LIBS=$opal_hwloc_external_LIBS |
| 186 | + |
186 | 187 | $1], |
187 | 188 | [$2]) |
188 | 189 |
|
|
0 commit comments