--- iv/lv5/CMakeLists.txt	2015-03-24 13:21:53.000000000 +0800
+++ iv/lv5/CMakeLists.txt	2023-12-21 16:07:11.000000000 +0800
@@ -3,7 +3,7 @@
 # prelude
 
 include(MergeStaticLibraries)
-set(CMAKE_OSX_ARCHITECTURES "x86_64")
+set(CMAKE_OSX_ARCHITECTURES "__ARCH__")
 
 function(build_gc)
     add_subdirectory(third_party/gc)
@@ -26,8 +26,7 @@
     third_party/v8_dtoa
     third_party/gc
     )
-link_directories_if_exists(/usr/local/lib)
-link_directories_if_exists(/opt/local/lib)
+link_directories_if_exists(__PREFIX__/lib)
 
 add_definitions("-DGC_NOT_DLL")
 
