diff --git a/configure b/configure index 28b530e8a6..59e06c8d57 100755 --- a/configure +++ b/configure @@ -6448,7 +6448,9 @@ check_cc intrinsics_neon arm_neon.h "int16x8_t test = vdupq_n_s16(0)" check_ldflags -Wl,--as-needed check_ldflags -Wl,-z,noexecstack -check_ldflags -Wl,-no_warn_duplicate_libraries +if [ $target_os = "darwin" ]; then + check_ldflags -Wl,-no_warn_duplicate_libraries +fi if ! disabled network; then check_func getaddrinfo $network_extralibs