From: Paul Floyd Date: Thu, 5 Nov 2020 14:58:23 +0000 (+0100) Subject: Fix build on Solaris 11.3 - ar does not like empty object files. X-Git-Tag: VALGRIND_3_17_0~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b45e5c56cd6e67f271991218faf6f3abfb4e5eee;p=thirdparty%2Fvalgrind.git Fix build on Solaris 11.3 - ar does not like empty object files. --- diff --git a/coregrind/m_libgcc_sup.c b/coregrind/m_libgcc_sup.c index e29325459a..373f80ca19 100644 --- a/coregrind/m_libgcc_sup.c +++ b/coregrind/m_libgcc_sup.c @@ -59,3 +59,9 @@ unsigned long int __getauxval (unsigned long int type) return 0; } #endif + +#if defined(VGO_solaris) +/* At least on Solaris 11.3 ar does not like + empty .ar files */ +int some_symbol_to_keep_ar_happy; +#endif