summaryrefslogtreecommitdiff
path: root/math/openblas/files/patch-f_check
blob: 5af156564f0365bb885b038224db2dec4c9bf8fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- f_check.orig	2023-04-01 20:18:01 UTC
+++ f_check
@@ -360,6 +360,16 @@ if [ -n "$link" ]; then
     	        flag="-lomp"
     	        ;;
     	    esac
+
+    	    case "$hostos" in "FreeBSD")
+        	    case "$CC" in
+                    gcc*) ;;
+                    *)
+                        # clang is assumed
+                        flag="-lomp"
+                        ;;
+                esac
+    	    esac
     	esac
 
         case "$flag" in -l*)