Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 2020 23:17:04 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r545468 - head/devel/ocl-icd/files
Message-ID:  <202008192317.07JNH4EB038810@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising
Date: Wed Aug 19 23:17:03 2020
New Revision: 545468
URL: https://svnweb.freebsd.org/changeset/ports/545468

Log:
  devel/ocl-icd: FIx build with -fno-common
  
  Fix the build of devel/ocl-icd with -fno-common, which is the default with
  llvm 11.
  
  MFH:		2020Q3

Added:
  head/devel/ocl-icd/files/patch-icd__generator.rb   (contents, props changed)

Added: head/devel/ocl-icd/files/patch-icd__generator.rb
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/ocl-icd/files/patch-icd__generator.rb	Wed Aug 19 23:17:03 2020	(r545468)
@@ -0,0 +1,11 @@
+--- icd_generator.rb.orig	2020-08-19 22:03:46 UTC
++++ icd_generator.rb
+@@ -189,7 +189,7 @@ EOF
+     }
+     libdummy_icd_structures += "};\n\n"
+     libdummy_icd_structures += "#pragma GCC visibility push(hidden)\n\n"
+-    libdummy_icd_structures += "struct _cl_icd_dispatch master_dispatch; \n\n"
++    libdummy_icd_structures += "extern struct _cl_icd_dispatch master_dispatch; \n\n"
+     $use_name_in_test.each { |k, f|
+       libdummy_icd_structures += "typeof(#{f}) INT#{f};\n"
+     }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008192317.07JNH4EB038810>