Merge pull request #5 from X0rg/master

Fix CMake troubles on i386
This commit is contained in:
Luboš Doležel 2015-02-22 22:30:22 +01:00
commit 3bab377f74
2 changed files with 2 additions and 2 deletions

View File

@ -19,6 +19,6 @@ set(i386_sources
gen/_setcontext.S
)
add_library(libc-i386 OBJECT ${i386_sources})
add_library(libc-hwplat OBJECT ${i386_sources})

View File

@ -30,7 +30,7 @@ set(sys_sources chmodx_np.c
)
if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i686")
set(sys_sources ${sys_sources} context-stubs.cpp)
set(sys_sources ${sys_sources} context-stubs.c)
endif()
SET_SOURCE_FILES_PROPERTIES(semctl.c PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -DLIBC_ALIAS_SEMCTL -DKERNEL -U__DARWIN_UNIX03 -D__DARWIN_UNIX03=0")