[Openmp-commits] [openmp] r248207 - Complex division requires libm on NetBSD, add it.
Joerg Sonnenberger via Openmp-commits
openmp-commits at lists.llvm.org
Mon Sep 21 13:21:02 PDT 2015
Author: joerg
Date: Mon Sep 21 15:21:02 2015
New Revision: 248207
URL: http://llvm.org/viewvc/llvm-project?rev=248207&view=rev
Log:
Complex division requires libm on NetBSD, add it.
Modified:
openmp/trunk/runtime/cmake/LibompHandleFlags.cmake
Modified: openmp/trunk/runtime/cmake/LibompHandleFlags.cmake
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/cmake/LibompHandleFlags.cmake?rev=248207&r1=248206&r2=248207&view=diff
==============================================================================
--- openmp/trunk/runtime/cmake/LibompHandleFlags.cmake (original)
+++ openmp/trunk/runtime/cmake/LibompHandleFlags.cmake Mon Sep 21 15:21:02 2015
@@ -154,6 +154,9 @@ function(libomp_get_libflags libflags)
if(${IA32})
libomp_append(libflags_local -lirc_pic LIBOMP_HAVE_IRC_PIC_LIBRARY)
endif()
+ IF(${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
+ libomp_append(libflags_local -lm)
+ ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
set(libflags_local ${libflags_local} ${LIBOMP_LIBFLAGS})
libomp_setup_flags(libflags_local)
set(${libflags} ${libflags_local} PARENT_SCOPE)
More information about the Openmp-commits
mailing list