From 78f90c64f97060092600a20bdb4cb5c8556a0b52 Mon Sep 17 00:00:00 2001
From: Giovanni La Mura <giovanni.lamura@inaf.it>
Date: Sun, 8 Jun 2025 11:13:23 +0200
Subject: [PATCH] Fix lgomp OFFLOAD configuration bug

---
 build/configure.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/configure.sh b/build/configure.sh
index 784d3f3..51a40a3 100755
--- a/build/configure.sh
+++ b/build/configure.sh
@@ -805,7 +805,7 @@ EOF
     fi
     if [ "x$result" = "x0" ]; then
 	echo "yes"
-	OFFLOADFLAGS=" -fcf-protection=check -foffload=nvptx-none=\"-O${CXX_OPT}${CXX_DBG} -fcf-protection=check -fopt-info -lm -latomic -gomp\""
+	OFFLOADFLAGS=" -fcf-protection=check -foffload=nvptx-none=\"-O${CXX_OPT}${CXX_DBG} -fcf-protection=check -fopt-info -lm -latomic -lgomp\""
 	if [ "x${OMPFLAGS}" = "x" ]; then
 	    OFFLOADFLAGS="${OFFLOADFLAGS} -fopenmp"
 	fi
-- 
GitLab