Fix CMake troubles on i386

This commit is contained in:
Xorg 2015-02-21 11:00:27 +01:00
parent 560a399ea0
commit 662acb3f97
2 changed files with 2 additions and 2 deletions

View File

@ -19,6 +19,6 @@ set(i386_sources
gen/_setcontext.S 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") if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i686")
set(sys_sources ${sys_sources} context-stubs.cpp) set(sys_sources ${sys_sources} context-stubs.c)
endif() endif()
SET_SOURCE_FILES_PROPERTIES(semctl.c PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -DLIBC_ALIAS_SEMCTL -DKERNEL -U__DARWIN_UNIX03 -D__DARWIN_UNIX03=0") SET_SOURCE_FILES_PROPERTIES(semctl.c PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -DLIBC_ALIAS_SEMCTL -DKERNEL -U__DARWIN_UNIX03 -D__DARWIN_UNIX03=0")