Add libmd as platform specific libraries for Solaris

This commit is contained in:
kinichiro 2022-01-17 19:04:23 +09:00
parent ea53dcd569
commit 9a18f4247e
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "SunOS")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_XOPEN_SOURCE=600")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DBSD_COMP")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fpic")
set(PLATFORM_LIBS ${PLATFORM_LIBS} nsl socket)
set(PLATFORM_LIBS ${PLATFORM_LIBS} dl md nsl socket)
endif()
add_definitions(-DLIBRESSL_INTERNAL)

View File

@ -123,7 +123,7 @@ char buf[1]; getentropy(buf, 1);
HOST_OS=solaris
HOST_ABI=elf
CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__ -D_XOPEN_SOURCE=600 -DBSD_COMP"
AC_SUBST([PLATFORM_LDADD], ['-ldl -lnsl -lsocket'])
AC_SUBST([PLATFORM_LDADD], ['-ldl -lmd -lnsl -lsocket'])
;;
*) ;;
esac