• Vladimir Serbinenko's avatar
    Fix -nopie/-nopie check. · b53f595b
    Vladimir Serbinenko authored
    We don't use lgcc_s but missing lgcc_s or another library cause test to fail.
    So use -nostdlib.
    We need to use -Werror to avoid warning-generated case to be accepted.
    Clang uses -nopie rather than -no-pie. Check both and use whichever one works.
    Additionally android clang passes -pie to the linker even though it doesn't
    define __PIE__. So if compilation without no-pie logic fails add -nopie/-no-pie
    even if __PIE__ is not defined.
acinclude.m4 13.1 KB