[libomptarget][flang] Explicitly pass the OpenMP device libraries to tests (#76796)

This pull request is a follow-up of patch:
https://github.com/llvm/llvm-project/pull/68225 and it explicitly
specifies OpenMP device libraries for Fortran OpenMP tests.

GitOrigin-RevId: 0cdaadf15aaa6609f93e3508417b47baa3891996
diff --git a/libomptarget/test/lit.cfg b/libomptarget/test/lit.cfg
index 19c5e5c..9078561 100644
--- a/libomptarget/test/lit.cfg
+++ b/libomptarget/test/lit.cfg
@@ -247,7 +247,7 @@
             "%clang-" + libomptarget_target + add_libraries(" %s -o %t")))
         config.substitutions.append(("%libomptarget-compile-fortran-" + \
             libomptarget_target, \
-            "%flang-" + libomptarget_target + " %s -o %t"))
+            "%flang-" + libomptarget_target + add_libraries(" %s -o %t")))
         config.substitutions.append(("%libomptarget-compileoptxx-run-and-check-" + \
             libomptarget_target, \
             "%libomptarget-compileoptxx-and-run-" + libomptarget_target + \