From 662acb3f975daec4d14c73517faea1f0e2f53d77 Mon Sep 17 00:00:00 2001 From: Xorg Date: Sat, 21 Feb 2015 11:00:27 +0100 Subject: [PATCH] Fix CMake troubles on i386 --- libc/i386/CMakeLists.txt | 2 +- libc/sys/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/i386/CMakeLists.txt b/libc/i386/CMakeLists.txt index 07eb47ee9..f89d93f3d 100644 --- a/libc/i386/CMakeLists.txt +++ b/libc/i386/CMakeLists.txt @@ -19,6 +19,6 @@ set(i386_sources gen/_setcontext.S ) -add_library(libc-i386 OBJECT ${i386_sources}) +add_library(libc-hwplat OBJECT ${i386_sources}) diff --git a/libc/sys/CMakeLists.txt b/libc/sys/CMakeLists.txt index cb003117e..a1a9c8102 100644 --- a/libc/sys/CMakeLists.txt +++ b/libc/sys/CMakeLists.txt @@ -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")