Merge pull request #4142 from bmiklautz/macOS

Fix build on macOS
This commit is contained in:
David Fort 2017-09-25 09:12:35 +02:00 committed by GitHub
commit 0e0df75ee7
3 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,11 @@
/* Include files */
#cmakedefine HAVE_FCNTL_H
#if defined(__APPLE__) && !defined(__IOS__)
#cmakedefine01 HAVE_UNISTD_H
#else
#cmakedefine HAVE_UNISTD_H
#endif
#cmakedefine HAVE_INTTYPES_H
#cmakedefine HAVE_SYS_MODEM_H
#cmakedefine HAVE_SYS_FILIO_H

7
docs/README.macOS Normal file
View File

@ -0,0 +1,7 @@
Starting with "El Capitan" Apple removed the openssl headers. Therefore it's
required to build openssl manually upfront. For example by using MacPorts or Homebrew.
To build FreeRDP against this library it's required to set the PKG_CONFIG_PATH
pointing to the openssl root directory befor building.
For example with brew it would look like this:
export PKG_CONFIG_PATH=$(brew --prefix)/opt/openssl/lib/pkgconfig

View File

@ -37,7 +37,7 @@ if(OPENSSL_FOUND)
else()
# if ${OPENSSL_LIBRARIES} libssl and libcrypto is linked
# therefor explicitly link against libcrypto
list(APPEND ${MODULE_PREFIX}_LIBS crypto)
list(APPEND ${MODULE_PREFIX}_LIBS ${OPENSSL_CRYPTO_LIBRARIES})
endif()
endif()