diff --git a/configure b/configure index 81a4c7ae27..023042fb68 100755 --- a/configure +++ b/configure @@ -4208,6 +4208,18 @@ elif enabled_any msvc icl; then fi fi +case $as_type in + clang) + add_asflags -Qunused-arguments + ;; +esac + +case $ld_type in + clang) + check_ldflags -Qunused-arguments + ;; +esac + case $target_os in osf1) enabled ccc && add_ldflags '-Wl,-expect_unresolved,*'