Try removing the OSX workaround.
@@ -4,8 +4,8 @@ mkdir build
cd build
if [[ "$target_platform" == osx-* ]]; then
- export AR_CMAKE_SETTING="-DCMAKE_CXX_COMPILER_AR=$AR"
- export RANLIB_CMAKE_SETTING="-DCMAKE_CXX_COMPILER_RANLIB=$RANLIB -DCMAKE_C_COMPILER_RANLIB=$RANLIB"
+ export AR_CMAKE_SETTING=
+ export RANLIB_CMAKE_SETTING=
else
# Workaround for making the LTO machinery work on Linux.
export AR_CMAKE_SETTING="-DCMAKE_CXX_COMPILER_AR=$GCC_AR -DCMAKE_C_COMPILER_AR=$GCC_AR"
