Add lib64 to RPATH.
Rpm based systems have a subset of libraries installed into lib64,
adjust RPATH to include lib64.
@@ -85,7 +85,7 @@ if [ $AOMP_STANDALONE_BUILD == 1 ] ; then
# Default is to build nvptx for STANDALONE build
AOMP_BUILD_CUDA=${AOMP_BUILD_CUDA:-1}
AOMP_BUILD_DEBUG=${AOMP_BUILD_DEBUG:-1}
- AOMP_ORIGIN_RPATH_NO_DTAGS="-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_INSTALL_RPATH=\$ORIGIN:\$ORIGIN/../lib:$AOMP_INSTALL_DIR/lib"
+ AOMP_ORIGIN_RPATH_NO_DTAGS="-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_INSTALL_RPATH=\$ORIGIN:\$ORIGIN/../lib:\$ORIGIN/../lib64:$AOMP_INSTALL_DIR/lib"
else
# Default is to NOT build nvptx for ROCm integrated build
AOMP_BUILD_CUDA=${AOMP_BUILD_CUDA:-0}
