File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ endif()
238238set_target_properties (${OpenBLAS_LIBS} PROPERTIES OUTPUT_NAME ${OpenBLAS_LIBNAME} )
239239
240240# Android needs to explicitly link against libm
241- if ( ANDROID )
241+ if ( ${CMAKE_SYSTEM_NAME} MATCHES "AIX|Android|Linux|FreeBSD|OpenBSD|NetBSD|DragonFly|Darwin" )
242242 if (BUILD_STATIC_LIBS)
243243 target_link_libraries (${OpenBLAS_LIBNAME} _static m )
244244 endif ()
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ if (${F_COMPILER} STREQUAL "GFORTRAN")
4646 set (FCOMMON_OPT "${FCOMMON_OPT} -fno-optimize-sibling-calls" )
4747 #Don't include -lgfortran, when NO_LAPACK=1 or lsbcc
4848 if (NOT NO_LAPACK)
49- set (EXTRALIB "{EXTRALIB} -lgfortran" )
49+ set (EXTRALIB "$ {EXTRALIB} -lgfortran" )
5050 endif ()
5151 if (NO_BINARY_MODE)
5252 if (MIPS64)
You can’t perform that action at this time.
0 commit comments