Open syoyo opened 9 years ago
Cool! I've added the support code to CMakeLists.txt
. Coud you try it?
Since this CMakeLists.txt is basically derived from the original source of BoehmGC, once this issue is fixed, we can contribute BoehmGC repository to fix CMake build on SPARC :)
This works on our SPARC, finally!
diff --git a/iv/lv5/third_party/gc/CMakeLists.txt b/iv/lv5/third_party/gc/CMakeLists.txt
index 5e4b22f..9125c86 100644
--- a/iv/lv5/third_party/gc/CMakeLists.txt
+++ b/iv/lv5/third_party/gc/CMakeLists.txt
@@ -66,7 +66,7 @@ SET(SRC alloc.c reclaim.c allchblk.c misc.c mach_dep.c os_dep.c
#FIXME(Yusuke Suzuki): added
SET(ASM_NEEDED false)
-IF(CMAKE_SYSTEM_PROCESSOR MATCHES "^sparc")
+IF(CMAKE_SYSTEM_PROCESSOR MATCHES "^sparc|s64fx")
IF(CMAKE_SYSTEM_NAME MATCHES "kNetBSD.*|NetBSD.*")
SET(SRC ${SRC} src/sparc_netbsd_mach_dep.s)
ELSE()
@syoyo:
Great! I'll merge your change :)
SPARC build of iv/lv5 fails with libgc related issue.
http://qiita.com/syoyo/items/0068f514f606a6b1a91e
It looks like some file(s) are missing in
CMakeList.txt
when targeting SPARC architecture.At least, with the following patch, I could get success to build libgc.