12 #include <elfutils/libdw.h>
13 #include <elfutils/version.h>
14 #ifndef _ELFUTILS_PREREQ
20 Dwarf
*dbg
= dwarf_begin
(0, DWARF_C_READ
);
31 Elf
*elf
= elf_begin
(0, ELF_C_READ
, 0);
37 #include <gnu/libc-version.h>
41 const char
*version
= gnu_get_libc_version
();
46 define SOURCE_ELF_MMAP
50 Elf
*elf
= elf_begin
(0, ELF_C_READ_MMAP
, 0);
63 return newtFinished
();
69 define SOURCE_PERL_EMBED
82 define SOURCE_PYTHON_EMBED
98 bfd_demangle
(0, 0, 0);
103 define SOURCE_CPLUS_DEMANGLE
104 extern char
*cplus_demangle
(const char
*, int
);
108 cplus_demangle
(0, 0);
113 define SOURCE_STRLCPY
115 extern size_t strlcpy
(char
*dest
, const char
*src
, size_t size
);
119 strlcpy
(NULL
, NULL
, 0);
125 # Usage: option = $(call try-cc, source-to-build, cc-options)
126 try-cc
= $(shell sh
-c \
127 'TMP="$(OUTPUT)$(TMPOUT).$$$$"; \
129 $(CC) -x c - $(2) -o "$$TMP" > /dev/null 2>&1 && echo y; \