Skip to content

Commit cf8087d

Browse files
authored
Merge pull request #11273 from edgargabriel/pr/rocm-config-fix
config: add rocm lib dir to LDFLAGS
2 parents ba46f32 + ac3fb0d commit cf8087d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

config/opal_check_rocm.m4

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl
2-
dnl Copyright (C) 2022 Advanced Micro Devices, Inc. All rights reserved.
2+
dnl Copyright (C) 2022-2023 Advanced Micro Devices, Inc. All rights reserved.
33
dnl $COPYRIGHT$
44
dnl
55
dnl Additional copyrights may follow
@@ -51,8 +51,10 @@ AC_DEFUN([OPAL_CHECK_ROCM],[
5151
[opal_check_rocm_happy="no"])
5252
5353
LDFLAGS="$rocm_save_LDFLAGS"
54-
OPAL_APPEND([CPPFLAGS], [${$1_CPPFLAGS}] )
5554
LIBS="$rocm_save_LIBS"
55+
OPAL_APPEND([CPPFLAGS], [${$1_CPPFLAGS}] )
56+
OPAL_APPEND([LDFLAGS], [${$1_LDFLAGS}] )
57+
OPAL_APPEND([LIBS], [${$1_LIBS}] )
5658
5759
AS_IF([ test "$opal_check_rocm_happy" = "no" ],
5860
[ CPPFLAGS="$rocm_save_CPPFLAGS"])

0 commit comments

Comments
 (0)