How do I set the options for CMAKE_AR?

I'm doing cross compiling with CMake and all is OK but the CMAKE_AR options.

I use set(CMAKE_AR ${GCC_PATH}/dld) to set CMAKE_AR. But I don't know how to set its option. By default, it uses the options rc to create the archive. But I need to change it to be -X -r5 -o. When use rc, it will complain the file rc cannot be found.

How do I fix it?

16
задан Peter Mortensen 14 June 2019 в 21:01
поделиться