logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository.

FreeBSD_bug32279.patch (795B)


      1 diff --git a/runtime/cmake/LibompHandleFlags.cmake.old b/runtime/cmake/LibompHandleFlags.cmake
      2 index 4bdbf8f..a411119 100644
      3 --- a/runtime/cmake/LibompHandleFlags.cmake.old
      4 +++ b/runtime/cmake/LibompHandleFlags.cmake
      5 @@ -152,6 +152,11 @@ function(libomp_get_libflags libflags)
      6    if(${IA32})
      7      libomp_append(libflags_local -lirc_pic LIBOMP_HAVE_IRC_PIC_LIBRARY)
      8    endif()
      9 +  IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
     10 +  libomp_append(libflags_local "-Wl,--no-as-needed" LIBOMP_HAVE_AS_NEEDED_FLAG)
     11 +  libomp_append(libflags_local -lm)
     12 +  libomp_append(libflags_local "-Wl,--as-needed" LIBOMP_HAVE_AS_NEEDED_FLAG)
     13 +  ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
     14    IF(${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
     15      libomp_append(libflags_local -lm)
     16    ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")