The configure check always fail with clang:
conftest.c:5:58: error: expected string literal as argument of 'alias' attribute
5 | extern __typeof (__foo) foo __attribute__ ((weak, alias (__foo)));
| ^
conftest.c:6:58: error: expected string literal as argument of 'alias' attribute
6 | extern __typeof (__foo) bar __attribute__ ((weak, alias (foo)));
| ^
Reviewed-by: Sam James <sam@gentoo.org>
void __foo (void)
{
}
-extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
-extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
+extern __typeof (__foo) foo __attribute__ ((weak, alias (\"__foo\")));
+extern __typeof (__foo) bar __attribute__ ((weak, alias (\"foo\")));
"
cat > conftest.c <<EOF
void __foo (void)
{
}
-extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
-extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
+extern __typeof (__foo) foo __attribute__ ((weak, alias (\"__foo\")));
+extern __typeof (__foo) bar __attribute__ ((weak, alias (\"foo\")));
"
LIBC_TRY_CC_AND_TEST_CC_COMMAND([if -Wno-ignored-attributes is required for aliases],
[$conftest_code],