Skip to content

Commit f133f04

Browse files
committed
confdb: Add hwloc link flags to wrappers for static builds
For static builds with embedded hwloc, we need any flags needed for linking hwloc to be added to the wrapper scripts or else we cannot build any binaries. Fixes #7266.
1 parent e7c2d59 commit f133f04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

confdb/aclocal_modules.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ AC_DEFUN([PAC_CONFIG_HWLOC],[
139139
if test -n "$hwloc_darwin_ldflags" ; then
140140
echo "hwloc_darwin_ldflags = $hwloc_darwin_ldflags"
141141
PAC_APPEND_FLAG([$hwloc_darwin_ldflags], [LDFLAGS])
142+
# we also need these flags for linking in the wrapper scripts
143+
PAC_APPEND_FLAG([$hwloc_darwin_ldflags], [WRAPPER_DEPENDENCY_LDFLAGS])
142144
fi
143145
fi
144146
])

0 commit comments

Comments
 (0)