Fix HOST_LD_FLAGS on macOS
@@ -350,7 +350,7 @@ if(UNIX)
# MacOS ld outputs useless warnings like
# ld: warning: -macosx_version_min not specificed, assuming 10.7
# suppress them with -w.
- set(DEFAULT_HOST_LD_FLAGS "-Wl,-dylib -lm")
+ set(DEFAULT_HOST_LD_FLAGS "-dylib -w -lm")
elseif(ANDROID_COMPILER)
set(DEFAULT_HOST_LD_FLAGS "-L/system/lib/ -shared -ldl -lc -lm /system/lib/crtbegin_so.o /system/lib/crtend_so.o")
else()
