Skip to content
  • Ben Gamari's avatar
    e8693713
    configure: Fix redundant-argument warning from -no-pie check · e8693713
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    Modern clang versions are quite picky when it comes to reporting
    redundant arguments. In particular, they will warn when -no-pie is
    passed when no linking is necessary.
    
    Previously the configure script used a `$CC -Werror -no-pie -E`
    invocation to test whether `-no-pie` is necessary. Unfortunately, this
    meant that clang would throw a redundant argument warning, causing
    configure to conclude that `-no-pie` was not supported. We now rather
    use `$CC -Werror -no-pie`, ensuring that linking is necessary and
    avoiding this failure mode.
    
    Fixes #20463.
    e8693713
    configure: Fix redundant-argument warning from -no-pie check
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    Modern clang versions are quite picky when it comes to reporting
    redundant arguments. In particular, they will warn when -no-pie is
    passed when no linking is necessary.
    
    Previously the configure script used a `$CC -Werror -no-pie -E`
    invocation to test whether `-no-pie` is necessary. Unfortunately, this
    meant that clang would throw a redundant argument warning, causing
    configure to conclude that `-no-pie` was not supported. We now rather
    use `$CC -Werror -no-pie`, ensuring that linking is necessary and
    avoiding this failure mode.
    
    Fixes #20463.
Loading