kou commented on issue #40248:
URL: https://github.com/apache/arrow/issues/40248#issuecomment-1965622266
Does this work?
```diff
diff --git a/cpp/cmake_modules/BuildUtils.cmake
b/cpp/cmake_modules/BuildUtils.cmake
index 083ac2fe9a..c8da0d43d4 100644
--- a/cpp/cmake_modules/BuildUtils.cmake
+++ b/cpp/cmake_modules/BuildUtils.cmake
@@ -96,10 +96,7 @@ function(arrow_create_merged_static_lib output_target)
list(APPEND all_library_paths $<TARGET_FILE:${lib}>)
endforeach()
- if(APPLE)
- set(BUNDLE_COMMAND "libtool" "-no_warning_for_no_symbols" "-static" "-o"
- ${output_lib_path} ${all_library_paths})
- elseif(CMAKE_CXX_COMPILER_ID MATCHES "^(Clang|GNU|Intel|IntelLLVM)$")
+ if(CMAKE_CXX_COMPILER_ID MATCHES "^(Clang|GNU|Intel|IntelLLVM)$")
set(ar_script_path ${CMAKE_BINARY_DIR}/${ARG_NAME}.ar)
file(WRITE ${ar_script_path}.in "CREATE ${output_lib_path}\n")
@@ -120,7 +117,9 @@ function(arrow_create_merged_static_lib output_target)
endif()
set(BUNDLE_COMMAND ${ar_tool} -M < ${ar_script_path})
-
+ elseif(APPLE)
+ set(BUNDLE_COMMAND "libtool" "-no_warning_for_no_symbols" "-static" "-o"
+ ${output_lib_path} ${all_library_paths})
elseif(MSVC)
if(CMAKE_LIBTOOL)
set(BUNDLE_TOOL ${CMAKE_LIBTOOL})
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]