mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-05 04:06:34 -05:00
Fix symver build error on non-ELF platforms
The following error is observed on Microblaze [1] build:
error: symver is only supported on ELF platforms
due to using __attribute__((symver)) on non-ELF platform.
[1] http://autobuild.buildroot.net/results/1e9/1e965d83d75615f35308440c5db044314a349357/build-end.log
ac_check_attribute_symver.m4 was downloaded from
https://github.com/smuellerDD/libkcapi/blob/master/m4/ac_check_attribute_symver.m4
This commit is contained in:
parent
b7389e2e2e
commit
d5170e1d0b
3 changed files with 26 additions and 1 deletions
|
|
@ -29,7 +29,7 @@
|
|||
#define INTERNAL_CONCAT2_2(Pre, Post) Pre##Post
|
||||
#define INTERNAL(Name) INTERNAL_CONCAT2_2(__, Name)
|
||||
|
||||
#if __GNUC__ > 10
|
||||
#if HAVE_ATTRIBUTE_SYMVER && __GNUC__ > 10
|
||||
#define symbol_version(real, name, version) \
|
||||
extern __typeof (real) real __attribute__((symver (#name "@" #version)))
|
||||
#define default_symbol_version(real, name, version) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue