Skip to content

Commit ac3fb0d

Browse files
committed
config: add rocm lib dir to LDFLAGS
I hit a platform where linking ompi_info failed because the LDFLAGS used during linking does not contain the rocm library directory. Signed-off-by: Edgar Gabriel <Edgar.Gabriel@amd.com>
1 parent 85012c0 commit ac3fb0d

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)