mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-08 11:02:24 +01:00
build: Only emit link warnings for ELF objects
This commit is contained in:
parent
8622767a8a
commit
49c7dd1ca4
@ -29,9 +29,13 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifdef __ELF__
|
||||
#define libbsd_link_warning(symbol, msg) \
|
||||
static const char libbsd_emit_link_warning_##symbol[] \
|
||||
__attribute__((__used__,__section__(".gnu.warning." #symbol))) = msg
|
||||
#else
|
||||
#define libbsd_link_warning(symbol, msg)
|
||||
#endif
|
||||
|
||||
#ifdef __ELF__
|
||||
# if __has_attribute(symver)
|
||||
|
Loading…
Reference in New Issue
Block a user