Explorar o código

- disable building Fortran examples on Darwin

Olivier Aumage %!s(int64=9) %!d(string=hai) anos
pai
achega
2f85453bbe
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      configure.ac

+ 6 - 0
configure.ac

@@ -2115,6 +2115,12 @@ if test "x$FC" != "x"; then
 			enable_build_fortran="no"
 		fi
 	fi
+	if test "x$starpu_darwin" = "xyes" ; then
+		# global constants defined in src/utils/fstarpu.c are not exported
+		# properly on Darwin, causing native Fortran examples to fail
+		AC_MSG_WARN([Fortran examples will not be built on Darwin])
+		enable_build_fortran="no"
+	fi
 	if test "x$enable_build_fortran" = "xyes" ; then
 		AC_DEFINE(STARPU_HAVE_FC, [], [Define this if a Fortran compiler is available])
 	fi