aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiulio Benetti <giulio.benetti@benettiengineering.com>2021-08-03 23:39:46 +0200
committerNikolaus Rath <Nikolaus@rath.org>2021-08-04 09:56:44 +0100
commit5f3fec6a799a8a843209d9a65b14167b098416a9 (patch)
tree5c1b3846addeff36e6c4f4bfc2da680b1cc99e27 /lib
parent624327ba00ef05093de965c51283e225184acdab (diff)
downloadlibfuse-5f3fec6a799a8a843209d9a65b14167b098416a9.tar.gz
meson.build: fix wrong .symver detection
As pointed here [1] __has_attribute() is broken for many attributes and if it doesn't support the specific attribute it returns true, so we can't really rely on that for this check. This lead to Buildroot libfuse3 build failure [2] where that shows up with: ``` error: symver is only supported on ELF platforms ``` Indeed Microblaze doesn't support ELF since it doesn't include elfos.h, but __has_attribute(symver) returns true. So let's substitute the #ifdef __has_attribute() with a stronger test on a function foo() with __attribute__((symver ("test@TEST"))). [1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101766 [2]: http://autobuild.buildroot.net/results/d6c/d6cfaf2aafaeda3c12d127f6a2d2e175b25e654f/build-end.log Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions