ios: updates to build with xcode6+
* update tool chain to use clang instead of gcc * add compatibility function for fwrite
This commit is contained in:
parent
23dfec9cc1
commit
43695bc15d
@ -303,3 +303,8 @@ void ios_uninit_freerdp()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* compatibilty functions */
|
||||||
|
size_t fwrite$UNIX2003( const void *ptr, size_t size, size_t nmemb, FILE *stream )
|
||||||
|
{
|
||||||
|
return fwrite(ptr, size , nmemb, stream);
|
||||||
|
}
|
||||||
|
@ -47,11 +47,10 @@ if (CMAKE_UNAME)
|
|||||||
endif (CMAKE_UNAME)
|
endif (CMAKE_UNAME)
|
||||||
|
|
||||||
# Force the compilers to gcc for iOS
|
# Force the compilers to gcc for iOS
|
||||||
if(NOT CMAKE_C_COMPILER)
|
include (CMakeForceCompiler)
|
||||||
include (CMakeForceCompiler)
|
CMAKE_FORCE_C_COMPILER (/usr/bin/clang Apple)
|
||||||
CMAKE_FORCE_C_COMPILER (gcc GNU)
|
CMAKE_FORCE_CXX_COMPILER (/usr/bin/clang++ Apple)
|
||||||
CMAKE_FORCE_CXX_COMPILER (g++ GNU)
|
set(CMAKE_AR ar CACHE FILEPATH "" FORCE)
|
||||||
endif()
|
|
||||||
|
|
||||||
# Skip the platform compiler checks for cross compiling
|
# Skip the platform compiler checks for cross compiling
|
||||||
#set (CMAKE_CXX_COMPILER_WORKS TRUE)
|
#set (CMAKE_CXX_COMPILER_WORKS TRUE)
|
||||||
@ -72,7 +71,7 @@ set (CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}")
|
|||||||
|
|
||||||
# Hidden visibilty is required for cxx on iOS
|
# Hidden visibilty is required for cxx on iOS
|
||||||
set (CMAKE_C_FLAGS_INIT "")
|
set (CMAKE_C_FLAGS_INIT "")
|
||||||
set (CMAKE_CXX_FLAGS_INIT "-headerpad_max_install_names -fvisibility=hidden -fvisibility-inlines-hidden")
|
set (CMAKE_CXX_FLAGS_INIT "-fvisibility=hidden -fvisibility-inlines-hidden -isysroot ${CMAKE_OSX_SYSROOT}")
|
||||||
|
|
||||||
set (CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS}")
|
set (CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS}")
|
||||||
set (CMAKE_CXX_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_CXX_LINK_FLAGS}")
|
set (CMAKE_CXX_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_CXX_LINK_FLAGS}")
|
||||||
|
Loading…
Reference in New Issue
Block a user